what does format short in a matlab code do??

 채택된 답변

DGM
DGM 2021년 11월 29일
편집: DGM 2021년 11월 29일
It just changes the display format used when numbers are printed to console.
format long
pi
ans =
3.141592653589793
format short
pi
ans = 3.1416
There are other options. See help format for more info. I should point out though that it's strictly a display formatting tool. The numbers themselves aren't changed.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 App Building에 대해 자세히 알아보기

태그

질문:

2021년 11월 29일

댓글:

2021년 11월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by