登录论坛

查看完整版本 : 需要一个好的MATLAB类教程


poster
2019-12-10, 20:41
我在尝试弄清楚如何在MATLAB中使用类时遇到了很多麻烦。我对C ++和Python非常熟悉,但是我对如何在MATLAB中定义类一无所知。有人通过很多例子知道很好的资源吗?官方文档还有很多不足之处。



回答:

mathwork站点上确实有一些OOP示例 (http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_oop/exampleindex.html) ,您能更精确地指出您要查找的内容吗?

但是,请注意, 较旧的Matlab版本 (http://www.mathworks.com/products/matlab/whatsnew.html)具有不同的OOP语法,在2008a中添加了classdef关键字(请参见video (http://www.mathworks.com/products/demos/shipping/matlab/WhatsNewR2008a_ObjectOrientedProgramming.html) )。



更多&回答... (https://stackoverflow.com/questions/2878535)