Info

此问题已关闭。 请重新打开它进行编辑或回答。

Analyze the text printing code ...

4 次查看(过去 30 天)
Masoud Ghanbari
Masoud Ghanbari 2013-6-24
关闭: MATLAB Answer Bot 2021-8-20
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
Hi Masoud,
I guess you want to write
fmt_item = '%.8f';
Titus

此问题已关闭。

标签

Community Treasure Hunt

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

Start Hunting!

Translated by