E7_Lecture2_F08 - Matlab as calculator

# E7_Lecture2_F08 - Matlab as calculator - 1 E7: INTRODUCTION...

This preview shows pages 1–3. Sign up to view the full content.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
5 Matlab as a calculator ype expressions at the >> and press return • Type expressions at the >>, and press return • Result is computed, andd isplayed as ans • Use numbers, +, *, /, -, (), sin, cos, exp, abs, round,… OTE: NOTE: • In the next slides I will show examples of the use of matlab in powerpoint. E7 L2 pp The powerpoint output format is not exactly equal to the actual matlab output. 6 Entering Commands and Expressions • MATLAB retains your previous keystrokes. • Use the up-arrow key to scroll back back through the commands. • Use the down-arrow key to scroll forward. Edit a line using the left- and right-arrow keys the Backspace key, and the Delete key. • Press the Enter key to execute the command. E7 L2 7 Scalar Arithmetic Operations Symbol Operation MATLAB form ^ exponentiation: a b a^b * multiplication: ab a*b / right division: a/b a/b \ left division: b/a a\b + addition: a + b a + b - subtraction: a - b a - b E7 L2 8 Order of Precedence Precedence Operation First Parentheses, evaluated starting with the innermost pair.
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 11/01/2009 for the course ENGLISH 7 taught by Professor Sengupta during the Spring '09 term at University of California, Berkeley.

### Page1 / 7

E7_Lecture2_F08 - Matlab as calculator - 1 E7: INTRODUCTION...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online