matlab function block Unable to call function?
古いコメントを表示
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
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Simulink Functions についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!