Why do I get the error "Invalid default value for property" when trying to define one default instance variable value in terms of another?
e.g.
classdef Example properties A = {'a','b','c'} B = [A,'d'] endend
gives me the following error when I try to instantiate an example object
>> Example
Invalid default value for property 'B' in class 'Example':
Undefined function or variable 'A'.
Best Answer