I have the following structure in matlab
superClass < handle
subClassA < superClass
subClassB < superClass
say I have a vector A of subClassA and a vector B of subClassB.
I would like to combine them like this:
superVector = [A B];
but Matlab doesn't like this. What's the proper way to cast the subclass back to the superclass?