How do I suppress the scale factor of a matrix?

39 vues (au cours des 30 derniers jours)
Shawn Miller
Shawn Miller le 24 Déc 2015
Commenté : Charles Cohen le 23 Avr 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?

Réponse acceptée

Image Analyst
Image Analyst le 24 Déc 2015
Try
format long g
  2 commentaires
Shawn Miller
Shawn Miller le 25 Déc 2015
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 le 23 Avr 2019
format short g
Should do what you're trying to do. Suppress the scale factor and only show approx 5 digits.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by