フィルターのクリア

simulink function block error getting Nan as output to my function block.

1 回表示 (過去 30 日間)
srinivasan ravi
srinivasan ravi 2018 年 11 月 13 日
コメント済み: srinivasan ravi 2018 年 11 月 19 日
hi, i am trying to add a function blockin my simulink that determines the skewness for specific width bit i am getting Nan as a output. if i run the same fuction separately using script and command window i am getting the output. the only problem is with simulink. please help me out of this. my input is [20385 1] and output will [1 200].
function result_k1= fcn(u)
%#codegen
result_k1=zeros(1, 200);
window_width=50;
for j=1:170
window_m1=u((j:window_width+(j-1)));
window_m11=window_m1(:);
%result_k1(j)=kurtosis(window_m11);
result_k1(j)=skewness(window_m11);
end
  2 件のコメント
Akshay Khadse
Akshay Khadse 2018 年 11 月 19 日
編集済み: Akshay Khadse 2018 年 11 月 19 日
Can you describe or post your model here? This would help other community members to better understand the issue.
srinivasan ravi
srinivasan ravi 2018 年 11 月 19 日

サインインしてコメントする。

回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by