How can you convert a scientific number to decimal?
조회 수: 2 (최근 30일)
이전 댓글 표시
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
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
추가 답변 (1개)
Matt J
2013년 8월 9일
If you want MATLAB to display its results differently, use the FORMAT command.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!