Should I put a semicolon after property names in MATLAB?

What is the recommended format for object-oriented MATLAB: put a semicolon after property names or not?

classdef SemicolonVersion
   properties
      prop1;
   end
end

OR

classdef NoSemicolonVersion
   properties
      prop1
   end
end
+4
source share
1 answer

You can also use. The MATLAB documentation uses both options, so there really is no acceptable way. Use what you want.

http://mathworks.com/help/matlab/matlab_oop/specifying-attributes.html

+2
source

Source: https://habr.com/ru/post/1618395/


All Articles