clear, clc, close all
%Matrix indexing,

A = [1 2 3; 4 5 6; 7 8 9]
y = 1:5; %This means start at one increment by one until you get to 5
x = 2:2:9; %This means start at two increment by two until you get to 8

%The colon operator in accessing a matrix means "all"
A(:); %This gathers all parts of your matrix and makes it into a column vector
A(1,:);
A(:,1);
transpose(A(:)); %makes it into a row vector

A(3) = 10; A;
A(x) = 10; A;
