|
|
|
To send each command entry instruction to MATLAB for processing, press the RETURN or ENTER key on your keyboard.
Now you know how to add, subtract, multiply, divide, and raise a number to a power in MATLAB – much the same way you do with a calculator or with other software packages.
The most recent result is always stored in a variable called ans (for ‘answer’). Only the very latest result is stored there.
You can use the right and left arrows on the keyboard to move right and left to edit a command line. Thus, you can correct mistakes by recalling a command with the up arrow and editing to correct it. You can type over a symbol you want to change or use the backspace key to delete it.
Unless you especially want to see the rest of your answers displayed in hexadecimal (base 16) form, change back to
format short
|
|
|
modules at math.duke.edu | Copyright CCP and the author(s), 2000 |