when i run my program of data writting to a file i have got exponential data.how it will be in the decimel format

2 visualizaciones (últimos 30 días)
fprintf(fileID,'%d',data(x,y,z))

Respuesta aceptada

KSSV
KSSV el 19 de Oct. de 2016
fprintf(fileID,'%f',data(x,y,z))

Más respuestas (1)

Jan
Jan el 19 de Oct. de 2016
Editada: Jan el 19 de Oct. de 2016
fprintf(fileID, '%g', data(x,y,z))
Perhaps:
fprintf(fileID, '%.16g', data(x,y,z))
See:
doc fprintf

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by