Concatenate Objects of Unlike Classes

If you concatenate objects of unlike classes, MATLAB® finds one class from which all the input objects inherit. MATLAB selects the lowest common parent in the Java class hierarchy as the output class. For example, concatenating objects of
java.lang.Byte, java.lang.Integer, and
java.lang.Double creates an object of the common parent to the three
input classes, java.lang.Number.

This website uses cookies to improve your user experience, personalize content and ads, and analyze website traffic. By continuing to use this website, you consent to our use of cookies. Please see our Privacy Policy to learn more about cookies and how to change your settings.