Hello,
My MatLab code outputs this 1.3357e+03 and I think this can be converted to a number like 1335.7.
I would like the MatLab function that will help me convert it.
Thanks for your help.

 채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2012년 11월 30일

0 개 추천

x=1.3357e+03;
out=sprintf('%.1f',x)

추가 답변 (2개)

Jurgen
Jurgen 2012년 11월 30일

0 개 추천

sprintf?
Walter Roberson
Walter Roberson 2012년 11월 30일

0 개 추천

format long g

카테고리

도움말 센터File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

제품

질문:

2012년 11월 30일

댓글:

2022년 12월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by