Use data in text files and use that data in Matlab
1 次查看(过去 30 天)
显示 更早的评论
Hello good day.
I hope you can help me.
I have a text file called 'Gain' that has 8 columns of data, each column has a header and 181 numeric data.
I just want the numeric data (181) from the third column of the text file and
use them in a Matlab file as matrix 181 X 1
How I do this?
I would be infinitely grateful for your help.
Greetings.
采纳的回答
Image Analyst
2018-12-19
Try
data = importdata(filename);
column3 = data.data(:,3);
Write back if you have problems, and attach your file.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Text Data Preparation 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!