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 CenterFile Exchange에서 Assumptions에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by