フィルターのクリア

How do I suppress the scale factor of a matrix?

16 ビュー (過去 30 日間)
Shawn Miller
Shawn Miller 2015 年 12 月 24 日
コメント済み: Charles Cohen 2019 年 4 月 23 日
In matlab, if the largest element of a matrix is larger than 10^3 or smaller than 10^-3 , MATLAB applies a common scale factor for the short and long formats. How do I suppress this scale factor so that the matrix is displayed with every element as short/long format?

採用された回答

Image Analyst
Image Analyst 2015 年 12 月 24 日
Try
format long g
  2 件のコメント
Shawn Miller
Shawn Miller 2015 年 12 月 25 日
Although this still changes number like 0.000000001 to scientific notation rather than keep everything as original, it works well for large number.
Charles Cohen
Charles Cohen 2019 年 4 月 23 日
format short g
Should do what you're trying to do. Suppress the scale factor and only show approx 5 digits.

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by