Appendix A

Syntax Quick Reference

This appendix gives examples of the most commonly used MATLAB syntax in this book (see Table A.1).

Table A.1

Operator Precedence (See Help on operator precedence)

Precedence Operators
1. ( )
2. ˆ .ˆ ’ .’ (pure transpose)
3. + (unary plus) - (unary minus) (NOT)
4. * / .* ./ .
5. + (addition) - (subtraction)
6. :
7. > < >= <= ===
8. & (AND)
9. | (OR)

A.1 Expressions

image

A.2 Function M-files

image

A.3 Graphics

image

A.4 if and switch

image

A.5 For and while

image

A.6 Input/output

image

A.7 load/save

image

A.8 Vectors and matrices

image

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.8.8