M E 202 Lecture Notes - Lecture 12: Syntax Highlighting, Text Editor
Document Summary
What is syntax highlighting: what does the ; do at the end of a statement, end of chapter vocabulary, functions, and operators. What is the command window: understand the different ways that parentheses are used in. Matlab: understand the difference between an array, a matrix, a vector, and a scalar. What about max(max(a)): using logical indices to select array elements. A = [1 2 3 4 5 6 7 8 9 10], and c = a(find(a >3))and b = For example, if a = [1 2 3 4;5 6 7 8] and b = [11 12]; then know what output (and possibly which error) will be produced by: 14, 3, 82]; b=[1;5;6]; c=[12 18 5 2]; Create a matrix called d from the third column of matrix a: d = a(:,3) Combine matrix b and matrix d to create matrix e, a 2d matrix with three rows and two columns: e = [b,d]