To call the entire contents of a column of a matrix, use matrix name and the colon operator (:)
Para encontrar la columna de una matriz, utilice el nombre de la matriz y el operador dos puntos (:)
A = [1 2 3;...
4 5 6;...
7 8 9];
A(:,1) = [1; 4; 7]
A(:,2) = [2; 5; 8]
and so on.
The colon tells Matlab to take the data from every row giving you the entire colomn.. The second number says which column to take from. You can put things like 'i' from your loop in there too.
Best Answer