User Tools

Site Tools


gibson:teaching:fall-2012:math445:repertoire

**This is an old revision of the document!** ----

A PCRE internal error occured. This might be caused by a faulty plugin

**A list of Matlab commands and syntax that you should know** <code> how to read a floating-point number (e.g. 1.4e-06) = assignment - + * / ^ algebraic operations \ solve system of equations Ax=b (x = A\b) *commas and colons *how to write a row vector *how to write a col vector *how to write a matrix *how to write a complex number *elementwise operations on vectors, matrices - + .* ./ .^ conditional expressions (boolean algebra) == ~= > < >= <= ~ *&& *|| *& *| zero == false nonzero == true control flow for-end if-elseif-else-end while-end *switch continue break pause constructing matrices and vectors *zeros *ones *eye *rand *randi *randn linspace colon syntax hugely helpful miscellaneous functions ceil floor round *size *input *fprintf (%c, %s, %d, %f, \n) plotting functions plot semilogy semilogx loglog *hist xlabel ylabel title legend *axes *hold *clf *grid *color & marker codes *figure *scripts user-defined functions function name, filename arguments outputs syntax for using a function as an argument to another function </code>

gibson/teaching/fall-2012/math445/repertoire.1348544844.txt.gz · Last modified: 2012/09/24 20:47 by gibson