I am trying to assign to output of an extrinsic call. I know I have to initialize it prior to the extrinsic call. In my case the extrinsic function returns an object. I tried to pre-initialize with a structure similar to that object.
op = operspec(plant_mdl);
But it complains: "MATLAB expression 'operspec' is not of the correct class: expected 'struct', found 'opcond.OperatingSpec'