how to create text file
200 ビュー (過去 30 日間)
古いコメントを表示
Hi :)
Its my first post in matlab forum. I want to know how to create text file in matlab programming (giving example will be appriciated). And after creating and have some operation(changing its contents only) on that file, how can we read that file's content back in matlab.
thanks sincerely, fazal khan
0 件のコメント
採用された回答
Mikhail
2014 年 8 月 29 日
http://www.mathworks.com/help/matlab/ref/fscanf.html - to read from existing file.
You can find examples there. Also commands save and load are much easy to deal with.
1 件のコメント
Image Analyst
2014 年 8 月 29 日
Don't forget fgetl() for reading in whole lines into a string, in case that is what is needed.
その他の回答 (2 件)
参考
カテゴリ
Help Center および File Exchange で Low-Level File I/O についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!