Matrix Preconditioning Techniques and Applications

Appendix C: A Brief Guide to MATLAB

Overview

There are many books written on MATLAB at both tutorial and advanced levels e.g. [135,279]; see also the official site

  • http://www.mathworks.com,

  • http://www.mathworks.com/support/books/

This short appendix is to illustrate some MATLAB notation and highlight the excellent graphics facilities. Further elementary introductions may be found from

  • http://www.liv.ac.uk/maths/ETC/matbook/ (Chen et al. [135])

  • http://www.math.uiowa.edu/~atkinson/m72 master.html

    (Atkinson and Han [25])

C.1 Vectors and Matrices

In mathematics, we use either the round braces or the square brackets to denote a vector or matrix. MATLAB sticks to the square brackets for entering a matrix e.g.

>> x = [ 1 2 3]        % for a row vector of size 3 >> y = [ 1 2 3 4:6 ] ' % for a column vector of size 6 >> A = [ 1 2 3; 4 5 6;          7 8 9         % for entering a 4 x 3 matrix          0 1 2]        % (note the use of ';' and end-of-line) >> B = [ 1 2 3 4 ...          5 6; 7 8 ...  % for entering a 2 x 6 matrix          9 0 1 2]      % (note the...

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: Wireways
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.