フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Put m-file to simulink, why it don't work?

1 回表示 (過去 30 日間)
Kristian Vepsäläinen
Kristian Vepsäläinen 2013 年 12 月 5 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I have m-file where is next code:
if true
function y=fun(eka,toka,kolmas,neljas,viides,ti)
%#codegen
coder.extrinsic('spline');
coder.extrinsic('apu');
x=[eka toka kolmas neljas viides];
xx=[ti:ti+4];
apu = spline(xx,x,xx);
y=apu;
end
Why this don't work? It gives error message: function output 'y' cannot be an mxArray in this context. Consider preinitializing the output variable with a known type.
What I do wrong?

回答 (0 件)

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by