I can’t understand how to do such a simple thing as determining constants using others.
For example, a dummy example:
classdef DummyClass < handle
properties (Constant)
NB_SECONDS_IN_MINUTE = 60;
NB_MINUTES_IN_HOUR = 60;
NB_SECONDS_IN_HOUR = NB_SECONDS_IN_MINUTE * NB_MINUTES_IN_HOUR;
end
end
This does not work: (
Then I tried with this line:
NB_SECONDS_IN_HOUR = DummyClass.NB_SECONDS_IN_MINUTE * DummyClass.NB_MINUTES_IN_HOUR;
but that doesn't work either ...
Did someone understand the key?: /
(I am using MATLAB R2009a, btw)
source
share