how to convert num2str for fprintf(fid, )

3 次查看(过去 30 天)
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 , )

采纳的回答

Walter Roberson
Walter Roberson 2014-2-25
'%f' or '%g' or '%e'

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Type Conversion 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by