Calling the vectorized Matlab fcn from within Simulink

조회 수: 1 (최근 30일)
Peter Balazovic
Peter Balazovic 2022년 10월 18일
답변: Paul 2022년 10월 18일
Dears,
I have various Matlab function vectorized and accosutmed to be used with matrix, vector inputs. Is there a way to use efffectivelly such "vectorized" functions in Simulink?

채택된 답변

Paul
Paul 2022년 10월 18일
Use a Matlab Function block in the Simulink model and call your function from inside that block. If your function is not amenable for code generation, declare it via coder.extrinsic. Check the doc pages for relevant details.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by