Numerical output

조회 수: 1 (최근 30일)
Eric
Eric 2011년 11월 22일
I have the numeric output of my code saved to ASCII files. The output is written in scientific notation. How do I change my output to be written in decimal notation, for example, I get 2.4e+000 but I want see 2.4 without having to change make the change in Excel.

답변 (1개)

Walter Roberson
Walter Roberson 2011년 11월 22일
How are you doing the writing now? The line(s) of code that are doing the writing would help.
  댓글 수: 1
Eric
Eric 2011년 11월 23일
This is what I have:
% save database file
db_fname = ('database.txt');
cd(save_path)
save(db_fname, '-ascii', '-tabs');
eval(['save -ascii -tabs ', db_fname,' database']);

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Database Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by