SNL-WaterPower / WecOptTool-MATLAB

WEC Design Optimization Toolbox
GNU General Public License v3.0
12 stars 9 forks source link

Overload functions #98

Open ryancoe opened 4 years ago

ryancoe commented 4 years ago

MATLAB allows you to "overload" built in functions to make plotting, etc. of objects easier.

https://www.mathworks.com/help/matlab/matlab_oop/overloading-functions-for-your-class.html

H0R5E commented 4 years ago

I guess this is a bit like the __something__ methods in Python except it extends to every MATLAB command. Might be a little confusing to new users? We should mock something up to see how it feels in real use.