Quick question on import data
2 次查看(过去 30 天)
显示 更早的评论
Hey everybody,
Just some sample lines here, and I'm trying to see what they exactly do:
data = importdata('Filename1.dat');
ModelFile = data.data;
Ok - I know the first line above reads in the data from the file.
So what exactly does the second line do (especially the data.data part)?
Now referring to these lines below, I'm trying to model it like the above 2 lines, but I'm getting errors. Can someone explain what I am doing wrong?
helodata1 = importdata('GougeTable.dat');
HeloModelFile1 = helodata1.helodata1;
helodata2 = importdata('MasterDataChart.dat');
HeloModelFile2 = helodata2.helodata2;
Thanks!
-J
0 个评论
采纳的回答
Walter Roberson
2012-3-18
and read the Output Arguments section.
HeloModelFile1 = helodata1.data;
HeloModelFile2 = helodata2.data;
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 File Operations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!