Calling the vectorized Matlab fcn from within Simulink

2 次查看(过去 30 天)
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 Functions 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by