필터 지우기
필터 지우기

convert smaller number to large number in matlab

조회 수: 3 (최근 30일)
Ran E
Ran E 2020년 12월 10일
댓글: Ran E 2020년 12월 10일
Hello,
I get the the results like that: 1.0173e+04
and i want to see the print of full number like that: 10172.9419158610
how i convert it ?
and if you can show me an example it will be fine.
thank you.

답변 (2개)

Ameer Hamza
Ameer Hamza 2020년 12월 10일
If you want to change the default display style in command window then run this line
format long G
and then display the number
>> pi*1e6
ans =
3141592.65358979
If you just want to print one number, the you can use fprintf()
>> fprintf('%f\n', pi*1e6)
3141592.653590
  댓글 수: 2
Ran E
Ran E 2020년 12월 10일
It work!
thank you very much.
Ameer Hamza
Ameer Hamza 2020년 12월 10일
I am glad to be of help!!!

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


Amir RF
Amir RF 2020년 12월 10일
Hello Dear Ran,
You can use following code:
fprintf('%.0f\n', result)
I hope this answers your question.
Best,

카테고리

Help CenterFile Exchange에서 Axis Labels에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by