필터 지우기
필터 지우기

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 CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by