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개)

카테고리

질문:

2022년 7월 13일

편집:

2025년 2월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by