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 次查看(过去 30 天)
fprintf(fileID,'%d',data(x,y,z))

采纳的回答

KSSV
KSSV 2016-10-19
fprintf(fileID,'%f',data(x,y,z))

更多回答(1 个)

Jan
Jan 2016-10-19
编辑:Jan 2016-10-19
fprintf(fileID, '%g', data(x,y,z))
Perhaps:
fprintf(fileID, '%.16g', data(x,y,z))
See:
doc fprintf

类别

Help CenterFile Exchange 中查找有关 Assumptions 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by