MATLAB Answers

0

Accessing Elements of an output of an extrinsic call

Asked by Hossein Rezazadeh on 4 Nov 2018
Latest activity Answered by madhan ravi
on 5 Nov 2018
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.
coder.extrinsic('operspec');
op=StructOpspec(); % Constructing a structure with the same feilds and types of operspec output;
op = operspec(plant_mdl);
But it complains: "MATLAB expression 'operspec' is not of the correct class: expected 'struct', found 'opcond.OperatingSpec'

  0 Comments

Sign in to comment.