フィルターのクリア

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 Center および File ExchangeSchedule Model Components についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by