I need to make a loop in which I need to add value on the end of the vector, so everytime i need to use (end+1)
, but i need to do it a few time and i don't want to make a lot of tables for this. In this way I need array of vectors like for example in c++. In c++ u use just [1][2]
for example to get to this and it's fine but I don't know how to do it in MATLAB. I can't just make static matrix, beacuse my points are generating in while true loop and I draw plots in real time. I was trying something like this:
tab = [4, []];
but it doesn't work. Any ideas? Thanks