How to initialize a vector of class handles?
问题 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 to complain about the changing vector size. classdef HandleClass < handle ... end ... for i = 1:10 foo(i) = HandleClass(); end I'm suspicious of the resource-hit required to use this method to allocate large arrays of complicated objects. A comment in a previous thread described a useful method to create a vector using the