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 ビュー (過去 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 Center および File ExchangeAssumptions についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by