23.06.2015 Views

MATLAB Programming

MATLAB Programming

MATLAB Programming

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

9 Classes and Objects<br />

Operation M-File Description<br />

a + b plus(a,b) Binary addition<br />

a - b minus(a,b) Binary subtraction<br />

-a uminus(a) Unary minus<br />

+a uplus(a) Unary plus<br />

a.*b times(a,b) Element-wise multiplication<br />

a*b mtimes(a,b) Matrix multiplication<br />

a./b rdivide(a,b) Right elementwise division<br />

a.\b ldivide(a,b) Left elementwise division<br />

a/b mrdivide(a,b) Matrix right division<br />

a\b mldivide(a,b) Matrix left division<br />

a.^b power(a,b) Element-wise power<br />

a^b mpower(a,b) Matrix power<br />

a < b lt(a,b) Less than<br />

a > b gt(a,b) Greater than<br />

a = b ge(a,b) Greaterthanorequalto<br />

a ~= b ne(a,b) Not equal to<br />

a == b eq(a,b) Equality<br />

a & b and(a,b) Logical AND<br />

a | b or(a,b) Logical OR<br />

~a not(a) Logical NOT<br />

a:d:b<br />

colon(a,d,b) Colon operator<br />

a:b<br />

colon(a,b)<br />

a' ctranspose(a) Complex conjugate transpose<br />

a.' transpose(a) Matrix transpose<br />

command window display(a) Display method<br />

output<br />

9-24

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!