This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
gibson:teaching:fall-2014:math445:exam1-vocab [2014/09/30 05:52] gibson |
gibson:teaching:fall-2014:math445:exam1-vocab [2014/10/01 11:09] (current) gibson |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Matlab vocabulary, up to exam 1 ====== | ====== Matlab vocabulary, up to exam 1 ====== | ||
- | You should be familiar with the following Matlab programming constructs and functions. | + | You should be familiar with the following Matlab programming constructs and functions. I've marked issues on which I expect some confusion with (!). |
<code> | <code> | ||
compact scientific notation (e.g. 1.4e-06) | compact scientific notation (e.g. 1.4e-06) | ||
complex numbers (e.g. 3 + 4*i) | complex numbers (e.g. 3 + 4*i) | ||
- | **Inf, NaN** | + | Inf, NaN (!) |
= assignment | = assignment | ||
Line 19: | Line 19: | ||
| | ||
accessing elements of vectors and matrices | accessing elements of vectors and matrices | ||
- | (single elements, rows, columns, and **subsets**) | + | (single elements, rows, columns, and subsets (!)) |
linear algebra operations on vectors and matrices | linear algebra operations on vectors and matrices | ||
+ - * \ ^ ' | + - * \ ^ ' | ||
| | ||
- | **elementwise operations on vectors, matrices** | + | elementwise operations on vectors, matrices (!) |
- + .* ./ .^ | - + .* ./ .^ | ||
logical (boolean) operations | logical (boolean) operations | ||
- | **==** | + | == (!) |
- | **~=** | + | ~= (!) |
> | > | ||
< | < | ||
>= | >= | ||
<= | <= | ||
- | ~ | + | ~ (!) |
&& (simple AND) | && (simple AND) | ||
|| (simple OR) | || (simple OR) | ||
& (componentwise AND for vectors) | & (componentwise AND for vectors) | ||
| (componentwise OR for vectors) | | (componentwise OR for vectors) | ||
- | **xor** (for both vectors and simple logical variables) | + | xor (for both vectors and simple logical variables) (!) |
zero means false | zero means false | ||
nonzero means true | nonzero means true | ||
+ | any | ||
+ | all | ||
+ | find | ||
+ | | ||
constructing matrices and vectors | constructing matrices and vectors | ||
square brackets [ ] | square brackets [ ] | ||
Line 94: | Line 98: | ||
You should be able to | 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$ | + | * 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 | * 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 | * write Matlab code for constructing plots of functions, with labels, legends, and specified line styles and colors |