필터 지우기
필터 지우기

Accessing Elements of an output of an extrinsic call

조회 수: 1 (최근 30일)
Hossein Rezazadeh
Hossein Rezazadeh 2018년 11월 4일
답변: madhan ravi 2018년 11월 5일
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'

답변 (1개)

madhan ravi
madhan ravi 2018년 11월 5일

카테고리

Help CenterFile Exchange에서 Schedule Model Components에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by