Hi,
How can I use object of one class in another class?
Example
classdef clcore properties dcs wcs end methods function objc = clcore (dcs, wcs) objc.dcs = dcs; objc.wcs = wcs end endend
the object of clcore is objc
objc = clcore
Now the same object i want to use it in my clMec
classdef clMec properties mecmode mec end end
I want to give objc as input to clmec since i have many calculations using the parameters in objcore. So there is anyway in doing it.
Thank you
Best Answer