save as .txt file

2 ビュー (過去 30 日間)
Tulips
Tulips 2012 年 7 月 5 日
コメント済み: Walter Roberson 2017 年 5 月 8 日
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 件のコメント
wasif saeed
wasif saeed 2017 年 5 月 8 日
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 ??
Walter Roberson
Walter Roberson 2017 年 5 月 8 日
wasif saeed, please start a new Question for this.

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2012 年 7 月 6 日
When you want to save as a text file, use the save() -ascii flag
save ( filename,'im', '-ascii')
  2 件のコメント
Tulips
Tulips 2012 年 7 月 6 日
it can save as a text file ..however, the file is empty..no pixels value inside.why is that?pls advice
Tulips
Tulips 2012 年 7 月 6 日
it can save as a text file ..however, the file is empty..no pixels value inside.why is that?pls advice
warning at the command window shown Warning: Attempt to write an unsupported data type to an ASCII file. Variable 'im' not written to file.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLow-Level File I/O についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by