Azzera filtri
Azzera filtri

how to convert num2str for fprintf(fid, )

12 visualizzazioni (ultimi 30 giorni)
at the first i convert my string to number
x(indexi,indexj)=str2num(string);
indexj=indexj+1 ;
but at the end i want to use fprintf and convert num to string num2str again to print it in text file
fprintf (fid , )

Risposta accettata

Walter Roberson
Walter Roberson il 25 Feb 2014
'%f' or '%g' or '%e'

Più risposte (0)

Categorie

Scopri di più su Data Type Conversion in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by