|
|||
Department of Engineering | |
University of Cambridge > Engineering Department > computing help |
b = [ 1 3 5; 2 4 6]; c=b(2,:) % row 2 d=b(:,1) % column 1 e=b(:,2:3) % columns 2 and 3Matrices can be composed from submatrices, so
f=[d e]
would produce a matrix equal to the original b.
| computing help | |