控制特定行为的方法
类可以重载函数以控制特定行为和操作
确定哪些方法控制特定对象行为以及哪些方法实现类的算术运算、关系运算和数组运算。
主题
- Methods That Modify Default Behavior
Methods commonly defined for MATLAB® methods.
- 运算符重载
通过重载这些函数来实现 MATLAB 运算符。
确定哪些方法控制特定对象行为以及哪些方法实现类的算术运算、关系运算和数组运算。
Methods commonly defined for MATLAB® methods.
通过重载这些函数来实现 MATLAB 运算符。