This is an old revision of the document!
====== Matlab vocabulary, up to exam 1 ====== You should be familiar with the following Matlab programming constructs and functions. <code> compact scientific notation (e.g. 1.4e-06) complex numbers (e.g. 3 + 4*i) Inf, NaN = assignment - + * / ^ algebraic operations \ solve system of equations Ax=b (x = A\b) commas and semicolons how to write a row vector how to write a col vector how to write a matrix how to write a complex number accessing elements of vectors and matrices (single elements, rows, columns, and subsets) linear algebra operations on vectors and matrices + - * \ ^ ' elementwise operations on vectors, matrices - + .* ./ .^ logical (boolean) operations == ~= > < >= <= ~ && (simple AND) || (simple OR) & (componentwise AND for vectors) | (componentwise OR for vectors) xor (for both vectors and simple logical variables) zero means false nonzero means true constructing matrices and vectors square brackets [ ] colon syntax linspace zeros ones eye rand randi randn helpful miscellaneous functions sum mean sort ceil floor round size save load clear class who whos what which plotting functions plot semilogy semilogx loglog hist xlabel ylabel title legend axes hold, hold off, hold on clf grid off, grid on color & marker codes figure subplot scripts </code>