Empty array of class objects from string name of class
조회 수: 10(최근 30일)
Guillaume 2018년 8월 18일
"Those familiar with Matlab will know that this will not work"
This.elements(end+1) = obj;
Indeed, but the semantically equivalent
This.element = [This.element, obj];
will. No need to test for emptiness.