matlab function in simulink

1 回表示 (過去 30 日間)
arsal javed
arsal javed 2022 年 7 月 13 日
編集済み: Walter Roberson 2025 年 2 月 5 日
here is code for the machine learning function
function y = predictActivity(u)%#codegen
persistent n;
if isempty(n)
n = loadLearnerForCoder('EnsembleModel.mat');
end
y = predict(n,u);
end
whenever i use it on command line it works fine
i make its block in simulink like this
but when run its block in simulink i get many errors like this
plz someone help me in this i have been stuck on this for quite a while
thnx in advance
  1 件のコメント
Amish
Amish 2025 年 2 月 5 日
Can you share the error message that you are seeing?

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

回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by