Available under Creative Commons-ShareAlike 4.0 International License.
The semicolon symbol at the end of a line suppresses the screen output. This is useful when you want to keep your command window clean.
Type the following entry and press the Return key:
» y=2+2
The following output is displayed:
y=
4
Now, press the up arrow key to recall our initial entry
» y=2+2
And insert a semicolon as follows:
» y=2+2;
No numerical result is displayed however MATLAB stores the value of y in the memory. We can recall the value y by simply typing y and pressing Return.
- 瀏覽次數:1275