Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

Analyze the text printing code ...

4 visualizzazioni (ultimi 30 giorni)
Masoud Ghanbari
Masoud Ghanbari il 24 Giu 2013
Chiuso: MATLAB Answer Bot il 20 Ago 2021
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...

Risposte (1)

Titus Edelhofer
Titus Edelhofer il 24 Giu 2013
Hi Masoud,
I guess you want to write
fmt_item = '%.8f';
Titus
  1 Commento
Masoud Ghanbari
Masoud Ghanbari il 24 Giu 2013
Yes Actually... Thanks for the mention

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by