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 Ansichten (letzte 30 Tage)
fprintf(fileID,'%d',data(x,y,z))

Akzeptierte Antwort

KSSV
KSSV am 19 Okt. 2016
fprintf(fileID,'%f',data(x,y,z))

Weitere Antworten (1)

Jan
Jan am 19 Okt. 2016
Bearbeitet: Jan am 19 Okt. 2016
fprintf(fileID, '%g', data(x,y,z))
Perhaps:
fprintf(fileID, '%.16g', data(x,y,z))
See:
doc fprintf

Kategorien

Mehr zu Chemistry finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by