MATLAB: Is matlab variable object

classobject

Hello everybody, there is just one simple question that comes across my mind and I can not figure it by myself, so I would like to put it here and see your understanding or opinion about it.
The question is: is matlab basic variable such as double, char object?
When I try to do some object operations such as getting its properties or the methods it can do, I got response which says that those variables are not class, but when I do the whos, it shows that those variables have class. How can I understand that?
Thanks for your opinions.

Best Answer

All variables have a "class". But not all variables are objects from an OOP class defined with classdef. I think what you are trying to do is treat regular objects like doubles and char as if they are objects from an OOP class defined with classdef, which they aren't.