<分区>
在面向对象的 MATLAB 中推荐的格式是什么:是否在属性名称后加上分号?
classdef SemicolonVersion
properties
prop1;
end
end
或
classdef NoSemicolonVersion
properties
prop1
end
end
标签 matlab oop formatting
<分区>
在面向对象的 MATLAB 中推荐的格式是什么:是否在属性名称后加上分号?
classdef SemicolonVersion
properties
prop1;
end
end
或
classdef NoSemicolonVersion
properties
prop1
end
end
最佳答案
您可以使用任何一个。 MATLAB 文档同时使用这两种方法,因此实际上没有公认的方法。随心所欲地使用。
http://mathworks.com/help/matlab/matlab_oop/specifying-attributes.html
关于matlab - 我应该在 MATLAB 中的属性名称后加上分号吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34062202/