print number in scientific notation that starts at zero, type 0.5000E + 01
Publicado por Alonso Aguilar (2 intervenciones) el 24/04/2019 02:47:14
I need to print a document with the numbers in scientific notation, but always start at zero
something like: 0.5000E + 01 0.5000E + 01 -.1500E + 02
I use the instruction: fprintf (fileID, '% 0.4E% 0.4E% 0.4E \ n', str2double (M (i, 5)), str2double (M (i, 6)), str2double (M (i, 7) ))
but what I get is: 5.0000E + 00 5.0000E + 00 -5.0000E + 00
something like: 0.5000E + 01 0.5000E + 01 -.1500E + 02
I use the instruction: fprintf (fileID, '% 0.4E% 0.4E% 0.4E \ n', str2double (M (i, 5)), str2double (M (i, 6)), str2double (M (i, 7) ))
but what I get is: 5.0000E + 00 5.0000E + 00 -5.0000E + 00
Valora esta pregunta


0