Good afternoon! I'm bad at object-oriented and I need some advice. The situation is as follows: in one part of the code, I calculate the integer variable var. Then I want this variable to be declared as the default property in the class. For example,
...
classdef vector
properties
v = var;
end
methods
end
end
How can I implement this?