Filter löschen
Filter löschen

how to create text file

184 Ansichten (letzte 30 Tage)
fazal khan
fazal khan am 29 Aug. 2014
Beantwortet: HARI BODDAPATI am 5 Okt. 2021
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

Akzeptierte Antwort

Mikhail am 29 Aug. 2014
Hi, - 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 Kommentar
Image Analyst
Image Analyst am 29 Aug. 2014
Don't forget fgetl() for reading in whole lines into a string, in case that is what is needed.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (2)

HARI BODDAPATI am 5 Okt. 2021

José-Luis am 29 Aug. 2014
The documentation has plenty of examples. For example the relatively low-level fprintf()

Community Treasure Hunt

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

Start Hunting!

Translated by