matlab function block Unable to call function?
Afficher commentaires plus anciens
I'm trying to write some custom matlab program in simulink via a matlab function block, and the function in the block calls another function ”logSensorSubFcn“, but I get Error "undefined function myFcn for " input arguments of type "uint8". I tried to pass all arguments in with type "double", but it still gives me a similar undefined error. Here is the diagram of my model and the corresponding block function. (run in R2022a)


function myfun(tout,img,loc,ori) % MATLAB Function block programs
coder.extrinsic("logSensorSubFcn");
logSensorSubFcn(tout,img,loc,ori)
end
function logSensorSubFcn(tout,img,loc,ori)
Omitted...
end
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Simulink Functions dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!