feof to loop through lines of data?
4 ビュー (過去 30 日間)
古いコメントを表示
Hey, so i'm supposed to have a file called xypts with data like below where everything is spaced one apart.
z 0 y 1
z 4.6 y 2.2
z 6.8 y 6
z 8.1 y 7.4
I have to use a while loop and fgetl to read each line as a string. In the loop, it creates z and y vectors for the data points. It will loop until the end of the file is reached. The number of points should be in the plot title.
2 件のコメント
Image Analyst
2014 年 12 月 5 日
OK. Good luck with that. There are examples in the help for fgetl() and sscanf() to help you.
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Function Creation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!