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 vues (au cours des 30 derniers jours)
fprintf(fileID,'%d',data(x,y,z))

Réponse acceptée

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

Plus de réponses (1)

Jan
Jan le 19 Oct 2016
Modifié(e) : Jan le 19 Oct 2016
fprintf(fileID, '%g', data(x,y,z))
Perhaps:
fprintf(fileID, '%.16g', data(x,y,z))
See:
doc fprintf

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by