Download Sysquake Remote User Manual

Transcript
124
Sysquake for LATEX
cells, the right-hand side of the assignment can be the empty list {}
or the empty array [].
Examples
Ordering evaluation:
(1+2)*3
9
Extracting a single element, a row, and a column:
a = [1,2,3; 4,5,6];
a(2,3)
6
a(2,:)
4 5 6
a(:,3)
3
6
Extracting a sub-array with contiguous rows and non-contiguous
columns:
a(1:2,[1,3])
1 3
4 6
Array elements as a vector:
a(3:5)
3
4
5
a(:)
1
2
3
4
5
6
Selections of elements where a logical expression is true:
a(a>=5)
5
6
a(:, sum(a,1) > 6)
2 3
5 6