How to create the following file for this function script header
1 次查看(过去 30 天)
显示 更早的评论
I have a function script which should receive through the header the name of the file that contains a data set. This file is to contain two columns of numbers; the first column x-values, the second column y-values. Finally, the file is to be in ascii format.
Can someone please help me with this?
0 个评论
回答(1 个)
Walter Roberson
2020-4-24
You can load() the file whose name is passed in.
2 个评论
Walter Roberson
2020-4-24
The file extension can be anything other than .mat or .fig in order for MATLAB to guess that it contains text.
I would tend to think that the file would contain values generated by your previous question about how to write two columns of numbers to a file.
另请参阅
类别
在 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!