I am trying to add an element to the end of a matrix and i dont know the length of the matrix.
EvantCal = 999*ones(1,2);
.
.
.
.
%// in a different function
EventCal(end + 1) = [1, 3];
%// the numbers are random
.
.
.
this is the error I get when I run the code:
In an assignment A(I) = B, the number of elements in B and I must be the same.