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 visualizzazioni (ultimi 30 giorni)
fprintf(fileID,'%d',data(x,y,z))

Risposta accettata

KSSV
KSSV il 19 Ott 2016
fprintf(fileID,'%f',data(x,y,z))

Più risposte (1)

Jan
Jan il 19 Ott 2016
Modificato: Jan il 19 Ott 2016
fprintf(fileID, '%g', data(x,y,z))
Perhaps:
fprintf(fileID, '%.16g', data(x,y,z))
See:
doc fprintf

Categorie

Scopri di più su Chemistry in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by