MATLAB POLYSPACE RELEASE NOTES Bedienungsanleitung Seite 53

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 240
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 52
Controlling Command Window Input and Output
format long e
1.333333333333333e+000 1.2345000000 00000e-006
format long g
1.33333333333333 1.2345e-006
format bank
1.33 0.00
format rat
4/3 1/810045
format hex
3ff5555555555555 3eb4b6231abfd271
If the largest element of a matrix is larger than 10
3
or smalle r than 10
-3
,
MATLAB applies a common scale factor for the short and long formats.
In addition to the
format functions shown above
format compact
suppresses many of the blank lines that appear in the output. This lets you
view more information on a screen or window. If you want more control over
the output format, use the
sprintf and fprintf functions.
Suppressing Output
If you simply type a statement and press Return or Enter, MATLAB
automatically displays the results on screen. Howev er, if you end the line
with a semicolon, MATLAB performs the computation but does not display
any output. This is particularly useful when you generate large matrices.
For example,
A = magic(100);
2-31
Seitenansicht 52
1 2 ... 48 49 50 51 52 53 54 55 56 57 58 ... 239 240

Kommentare zu diesen Handbüchern

Keine Kommentare