can someone advice how to save as a text(.txt) becoz the above coding cannot read the value .txt file..however, it can save as .txt ...thanks
save as .txt file
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Tulips
am 5 Jul. 2012
Kommentiert: Walter Roberson
am 8 Mai 2017
hello, filename =strcat('directory',int2str(v),'.txt'); save ( filename,'im') can I know why I used this script, the .txt file cannot be read.fyi, I used loop and put the script inside the loop. Actually the .txt file should read a number. Can someone correct my coding.Thanks!-_-
5 Kommentare
wasif saeed
am 8 Mai 2017
can you please guide me that i have a problem when i open SEGY data in matlab and i tried to save in txt file than it gives an error ..please guide what should i do ??
Akzeptierte Antwort
Walter Roberson
am 6 Jul. 2012
When you want to save as a text file, use the save() -ascii flag
save ( filename,'im', '-ascii')
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Low-Level File I/O finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!