Although MATLAB has classes, the syntax and calling conventions are significantly different from other languages.
MATLAB has value classes and reference classes, depending on whether the class has "handle" as a super-class (for reference classes) or not (for value classes).

Method call behavior is different between value and reference classes. For example, a call to a method

can alter any member of "object" only if "object" is an instance of a reference class.

Alternatives
Structures
Classes
Vectors/matrices