matlab function block Unable to call function?
Mostra commenti meno recenti
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
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Simulink Functions in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!