MATLAB Answers

0

How do I suppress the scale factor of a matrix?

Asked by Shawn Miller on 24 Dec 2015
Latest activity Commented on by Charles Cohen on 23 Apr 2019
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?

  0 Comments

Sign in to comment.

Tags

1 Answer

Answer by Image Analyst
on 24 Dec 2015
 Accepted Answer

Try
format long g

  2 Comments

Although this still changes number like 0.000000001 to scientific notation rather than keep everything as original, it works well for large number.
format short g
Should do what you're trying to do. Suppress the scale factor and only show approx 5 digits.

Sign in to comment.