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

 採用された回答

Mikhail
Mikhail 2014 年 8 月 29 日

0 投票

Hi, http://www.mathworks.com/help/matlab/ref/fprintf.html - to write into a file (and create it)
You can find examples there. Also commands save and load are much easy to deal with.

1 件のコメント

Image Analyst
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 件)

HARI BODDAPATI
HARI BODDAPATI 2021 年 10 月 5 日

1 投票

ljdjljd;s'pcls
José-Luis
José-Luis 2014 年 8 月 29 日

0 投票

The documentation has plenty of examples. For example the relatively low-level fprintf()

カテゴリ

ヘルプ センター および File ExchangeFile Operations についてさらに検索

質問済み:

2014 年 8 月 29 日

回答済み:

2021 年 10 月 5 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by