This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
gibson:teaching:spring-2018:math445:lecture:scripts [2018/01/30 02:38] gibson |
gibson:teaching:spring-2018:math445:lecture:scripts [2018/01/30 02:43] (current) gibson [Matlab scripting] |
||
|---|---|---|---|
| Line 31: | Line 31: | ||
| <code matlab> | <code matlab> | ||
| >> pwd % print working directory | >> pwd % print working directory | ||
| - | |||
| ans = | ans = | ||
| - | |||
| /home/gibson/math445 | /home/gibson/math445 | ||
| Line 40: | Line 38: | ||
| MATLAB Code files in the current folder /home/gibson/math445 | MATLAB Code files in the current folder /home/gibson/math445 | ||
| + | plotsincos | ||
| </code> | </code> | ||
| - | When the script is run, Matlab opens a new figure window and draws the plot | + | You *run* a script by typing its name at the Matlab prompt (without the ''.m'' file extension). When the script is run, Matlab opens a new figure window and draws the plot |
| <code matlab> | <code matlab> | ||