% Review 1:1:10.^2 (1:1:10).^2 plot([1 4 3 2],[7 3 2 9]); % what is? mod(345,23); floor(345/23); % Matrices m1 = [ 1 2 3 ; 4 5 6 ; 7 8 9 ]; m2 = [ 1:1:3 ; 4:1:6 ; 7:1:9 ]; m2 = 1 2 3 4 5 6 7 8 9 % Access elements of a matrix (row,column) or (row-range,column-range) m2(2,3) == 6 m2(:,3) == 3 6 9 m2(3,:) == 7 8 9 m2(3,1:2) == 7 8 m2(1:2,1:2) == 1 2 4 5 % Matrix concatenation m3 = [[ 1:3 ; 4:6 ; 7:9 ] [ 10:12 ; 13:15 ; 16:18 ]] = 1 2 3 10 11 12 4 5 6 13 14 15 7 8 9 16 17 18 % Creation and initialization (so we can read file data) m4 = zeros(3,4) = 0 0 0 0 0 0 0 0 0 0 0 0 m5 = ones(3,4) = 1 1 1 1 1 1 1 1 1 1 1 1