Say A=[1,3];
.
I want to keep chopping the tail of A
, except that MALAB does not have a "A.pop()
"
I tried to write a code like
for i=m:-1:1;
A=A(1:i-1);
end
but MATLAB says "Subscript indices must either be real positive integers or logicals."