Hi guys,
I am having some problem in accessing the class members of one class to another class. I have checked in matlab documentation but i didn#t understood it weel. Could anyone help me in understanding it.
classdef clcore properties(GetAccess=?clMec) cpc csc end properties(Dependent, GetAccess=?clMec) ws end methods(GetAccess=?clMec) function ws=get.ws(obj) ws=obj.cpc+obj.csc; end endendclassdef clMec properties Mecmode end methods %
endend
and in command window
objcore=clcore(1,2)
I knew the way i have done is wrong but my context is this. Could anyone explain me how to use this getaccess.
thankyou.
Best Answer