How to push a variable in a vector in matlab?
Something like that:
A = [5 2 3]; push(A, 7); % A = [5 2 3 7]
Thanks.
I have found the answer.
Use this:
A = [A, 7];
Or that:
A(end + 1) = 7;