what does format short in a matlab code do??

24 ビュー (過去 30 日間)
ad lyn
ad lyn 2021 年 11 月 29 日
コメント済み: ad lyn 2021 年 11 月 29 日

採用された回答

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.
  1 件のコメント
ad lyn
ad lyn 2021 年 11 月 29 日
thank you

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by