{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Lecture Notes - b a b a b a b a a b b a b a b a b a ab a a...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon

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

View Full Document Right Arrow Icon

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

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: b a b a b a b a a b b a b a b a b a ab a a b a a b- + ±- + = ÷--- ; n subtractio and Addition \ \ division Left \ / ; * ; division and tion Multiplica / * Negation ^ tion Exponentia ^ Form MATLAB Operation Symbol Scalar Arithmetic Operations Example: x = (a + b*c)/d^2 count = count + 1 (Matrix inverse) In order of priority Symbol Operation Form Example Scalar-array addition [4, 6] 3 [7, 9]- Scalar-array subtraction [8, 3] 6 [2, 3] Array addition [4, 6] [8, 3] [12, 9]- Array subtraction [4, 6] [8, 3] [ 4, 3] * A . rray m A b A b A B A B + + + =-- =- + + + =-- = - ultiplication [3, 6] *[2, 3] [6, 18] / Array right division [3, 7] / [8, 5] [3 / 8, 7 / 5] [0.375,1.400] \ Array left division [3, 7] \ [8, 5] [3 \ 8, 7 \ 5] [2.667,0.7143] ^ Array exponentiation ^ . . . . . [ . . . . 4 . , A * B A / B A \ B A B- =- = = = = 2] ^ 3 [4 ^ 3, 2 ^ 3] [64, 8] 3. ^ [2, 5] [3^ 2, 3^ 5] [9, 243] [5, 3] ^ [2, 4] [5 ^ 2, 3^ 4 . ] [25, 81] . = = = = = = Element-by-Element Operations Array Operations for m × n Matrices ----- = = 5 10 5 15 20 15 10 5 20 15 10 5 5 .* A B [ ] ----- = = 1 2 1 3 4 3 2 1 4 3 2 1 1- 2 1 3-4; :-1 : 1- 4; : 1 A ----- = = 1 8 1 27 64 27 8 1 64 27 8 1 3 .^ A C Built-in Functions ❚ All the standard operators +, - , *, /, ^ ❚ Sqrt( ), abs( ), sin( ), cos( ), exp( ),...
View Full Document

{[ snackBarMessage ]}

Page1 / 20

Lecture Notes - b a b a b a b a a b b a b a b a b a ab a a...

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

View Full Document Right Arrow Icon bookmark
Ask a homework question - tutors are online