Create empty array of specified class
Use ClassName.empty to create a 0-by-0 array of the ClassName class. Use ClassName.empty(m,0) to create an m-by-0 array of the ClassName class. This function is useful for creating empty arrays of data types that do not have a special syntax for creating empty arrays, such as [] for double arrays.
returns an empty 0-by-0 array of the class named by A = ClassName.emptyClassName. Replace ClassName with the actual name of the class.
returns an empty array with the specified dimensions. At least one of the dimensions must be 0.A = ClassName.empty(sz1,...,szN)
returns an empty array with the specified dimensions. At least one of the dimensions must be 0. Use this syntax to define an empty array that is the same size as an existing empty array. Pass the values returned by the A = ClassName.empty(sizeVector)size function as inputs.
empty is a hidden, public, static method of all nonabstract MATLAB® classes. You can override the empty method in class definitions.