matlab how to get object type

Using class Function in MATLAB to Get Object Type

You can use the class function in MATLAB to determine the type of an object. Here's an example:

obj = 5;
objType = class(obj);

Replace obj with the variable name of the object you want to check.