i am doing programming in Matlab. i want to declare an array which should be dynamic. i don't how much data i will receive while program is running. i want the array to increase if data is increased. Please suggest any solution as i cannot include libraries in it.
Originally Posted by wafeeqg
are you sure you posted on the right forum? :)
By default all arrays in MATLAB are dynamic; they expand in size when you access out of the current array bounds. Try:
a = [1, 2; 3, 4];
a(5,2) = 7