23.06.2015 Views

MATLAB Programming

MATLAB Programming

MATLAB Programming

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Operators<br />

Operators<br />

The <strong>MATLAB</strong> operators fall into three categories:<br />

• “Arithmetic Operators” on page 3-17 perform numeric computations, for<br />

example, adding two numbers or raising the elements of an array to a<br />

given power.<br />

• “Relational Operators” on page 3-18 compare operands quantitatively,<br />

using operators like “less than” and “not equal to.”<br />

• “Logical Operators” on page 3-20 use the logical operators AND, OR, and<br />

NOT.<br />

This section also discusses “Operator Precedence” on page 3-26.<br />

Arithmetic Operators<br />

<strong>MATLAB</strong> provides these arithmetic operators.<br />

Operator<br />

Description<br />

+ Addition<br />

- Subtraction<br />

.* Multiplication<br />

./ Right division<br />

.\ Left division<br />

+ Unary plus<br />

- Unary minus<br />

: Colon operator<br />

.^ Power<br />

.'<br />

'<br />

Transpose<br />

Complex conjugate transpose<br />

* Matrix multiplication<br />

/ Matrix right division<br />

3-17

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

Saved successfully!

Ooh no, something went wrong!