I have a handle-based class that I need to create a vector of. An easy method of doing this is to dynamically construct the vector in a for loop, but this causes mlint>
Having a default constructor the accepted answer is fine. Having no default constructor (HandleClass()) returns not enough input arguments) the best possibility I see is creating a cell first:
foo=cell(1,10);
for ix=1:10
foo{ix}=HandleClass(ix)
end;
foo=[foo{:}];