User Tools

Site Tools


gibson:teaching:fall-2014:math445:exam1-vocab

Matlab vocabulary, up to exam 1

You should be familiar with the following Matlab programming constructs and functions. I've marked issues on which I expect some confusion with (!).

  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

    any 
    all
    find
    
  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

You should be able to

  • interpret various log-linear plots as x-y relationships of the form $y = mx + b$, $y = c 10^x$, $y = m \log x + b$, and $y = c x^m$ (!)
  • convert linear story problems into matrix-vector equations and solve them
  • write Matlab code for constructing plots of functions, with labels, legends, and specified line styles and colors
gibson/teaching/fall-2014/math445/exam1-vocab.txt · Last modified: 2014/10/01 11:09 by gibson