MATLAB program design and application (1)

xiaoxiao2021-03-06  69

1-1, basic operations and functions

Basic mathematical operations under MATLAB, simply enter the mode directly into the prompt number (>>), and press Enter. E.g:

>> (5 * 2 1.3-0.8) * 10/25

ANS =

4.2000

MATLAB stores the calculation results directly into a variable ANS to represent the answer (Answer) after the MATLAB operation and display its value on the screen. (For the sake of simplicity, in the following examples, we no longer printed the MATLAB's prompt number.)

hint:

"

转载请注明原文地址:https://www.9cbs.com/read-90682.html

New Post(0)