MATLAB basic learning ----- data display format (settings)

Source: Internet
Author: User

The format is used to control the display format. However, this only affects the display of the result and does not affect its computing and storage. The following uses 1/3 as an example to describe how to display data:

Format | format short 5-Bit fixed point 0.3333

Format long 15-Bit fixed point indicates 0.333333333333333

Format short E 5-bit floating point expression 3.3333e-001

Format long e 15-bit floating point expression 3.3333333333333e-01

The format short g system selects a 5-Bit fixed point and a 5-bit floating point to better represent 0.33333.

The format long g system selects a 15-Bit fixed point and a 15-bit floating point to better represent 0.333333333333333.

Representation of rational numbers in the format rat approximation is 1/3

Format hex hexadecimal representation 3fd5555555555555

Format Bank uses the metacharacter (US-based) point to represent 0.33

No blank lines exist between the format compact variables.

Empty rows between format loose Variables

Format + big matrix data representation, positive number, negative number and 0 are expressed with +,-, and space +


You can also modify the default format of the system without using the format command. For example, file-> preferences-> command window-> text display.


MATLAB basic learning ----- data display format (settings)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.