How can you convert a scientific number to decimal?

조회 수: 2 (최근 30일)
vatankhah
vatankhah 2013년 8월 9일
I have an equation in matlab that gave me this result:
4.1084e+001 -9.6671e+002i
how can I convert it to a decimal number?

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 8월 9일
편집: Azzi Abdelmalek 2013년 8월 9일
a=4.1084e+001-9.6671e+002i
out=sprintf('%.2f+%.2fi',real(a),imag(a));
out=strrep(out,'+-','-')
  댓글 수: 1
Azzi Abdelmalek
Azzi Abdelmalek 2013년 8월 9일
[vatankhah comented]
It was useful Thanks for your help

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

추가 답변 (1개)

Matt J
Matt J 2013년 8월 9일
If you want MATLAB to display its results differently, use the FORMAT command.

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by