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

1 view (last 30 days)
fprintf(fileID,'%d',data(x,y,z))

Accepted Answer

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

More Answers (1)

Jan
Jan on 19 Oct 2016
Edited: Jan on 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!