Reputation: 33
Is it possible to create a 1-dimensional array without initializing the array elements and the array length in Matlab?
Upvotes: 0
Views: 50
Reputation: 11
I usually create the empty array first, say
array=[];
and then append the results, for instance:
for cont = 1: 10
array=[array,cont];
end
Upvotes: 1