How can I convert 5.000000e-01 to 0.5 in Matlab? Please help. Thank you so much.

조회 수: 4 (최근 30일)
sam
sam 2022년 9월 26일
편집: Stephen23 2022년 9월 26일
I need to convert 5.000000e-01 to 0.5 in Matlab
  댓글 수: 3
sam
sam 2022년 9월 26일
Hi I mean matlab normally recall it by 5.000000e-01 unless we mention %0.1f. Thank you.
Stephen23
Stephen23 2022년 9월 26일
편집: Stephen23 2022년 9월 26일
"I mean matlab normally recall it by 5.000000e-01 unless we mention %0.1f"
What exactly do you mean by "recall" ? I did a search of the MATLAB documentation for "recall", but nothing relevant seemed to be returned. I have no idea what you are doing or how you are doing it, because "recall" is not a standard MATLAB term.

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

답변 (1개)

Voss
Voss 2022년 9월 26일
format longE
0.5
ans =
5.000000000000000e-01
format longG
0.5
ans =
0.5
Documentation: format

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by