Analyze the text printing code ...

Hi Dear Walter...
would you please analyze your code parts for me...
fmt_item = '%f.8';
delim = '\t';
nl = '\n';
fmt = [repmat( [fmt_item delim], 1, size(YourMatrix,2)-1 ), fmt_item, nl];
fid = fopen('YourOutput.txt', 'wt');
fprintf(fid, fmt, YourMatrix .' );
fclose(fid);
i'm kind of confused...

回答 (1 件)

Titus Edelhofer
Titus Edelhofer 2013 年 6 月 24 日

0 投票

Hi Masoud,
I guess you want to write
fmt_item = '%.8f';
Titus

1 件のコメント

Masoud Ghanbari
Masoud Ghanbari 2013 年 6 月 24 日
Yes Actually... Thanks for the mention

この質問は閉じられています。

タグ

質問済み:

2013 年 6 月 24 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by