octave - Format of number when saved as ascii in matlab is alway scientific? Can it be changed? -


i have 2x8 variable/matrix like:

25.0000   50.0000   75.0000  100.0000  125.0000  150.0000  175.0000  200.0000 1.0039    0.9947    0.9816    0.9655    0.9467    0.9254    0.9015    0.8749 

when save (-ascii *.dat * ) saved in scientific notation always. ie,

2.5000000e+001  5.0000000e+001  7.5000000e+001  1.0000000e+002  1.2500000e+002  1.5000000e+002  1.7500000e+002  2.0000000e+002   1.0039195e+000  9.9468202e-001  9.8160438e-001  9.6546723e-001  9.4666296e-001  9.2535026e-001  9.0150633e-001  8.7493220e-001 

no way able change using sprintf or num2str. want saved in ascii file displayed when saved ascii goes scientific notation. missing something?

it looks can not done using save. use dlmwrite or fprintf more flexible alternatives

http://www.mathworks.com/matlabcentral/newsreader/view_thread/240105


Comments