I have an array X
(array of vectors) which is formed by 2 lines and 3 columns.
a1=[1 2 3];
b1=[2 5 4];
c1=[2 2 4];
a2=[1 6 5];
b2=[1 6 4];
c2=[4 5 7];
X= {a1,b1,c1 ; a2,b2,c2};
Suppose that I select the first line (a1, b1 and c1)
from the array X
.
[m n]=size(X); % m=2 and n=3
selected_line = X(1, 1:n);
How can I rewrite the same X
but without the first line? In other words, how can I remove the selected line from my table in order to get the array {a2, b2, c2}
instead of X
described above?