Calling the vectorized Matlab fcn from within Simulink

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?

 Accepted Answer

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.

More Answers (0)

Categories

Find more on Simulink in Help Center and File Exchange

Products

Release

R2022b

Asked:

on 18 Oct 2022

Answered:

on 18 Oct 2022

Community Treasure Hunt

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

Start Hunting!