I am getting the following error

3 ビュー (過去 30 日間)
Shubhangi Bhadoria
Shubhangi Bhadoria 2016 年 8 月 30 日
編集済み: Geoff Hayes 2016 年 8 月 30 日
When I inserted a MATLAB block in SIMULINK model to remove the spikes from the input.
CODER.NULLCOPY does not support inputs of class 'mxArray'.
Function 'Estimation of stator flux linkage vector /MATLAB Function' (#57.81.111), line 5, column 7:
"coder.nullcopy(zeros(size(u)))"
Launch diagnostic report.
The program I ran as follows:
function y = fcn(u)
%#codegen
coder.extrinsic('medfilt1');
u=medfilt1(u);
y = coder.nullcopy(zeros(size(u)));
y = u;
Any suggestions in this mater will be helpful.

回答 (0 件)

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by