Simulink use user-defined functions
1 view (last 30 days)
Show older comments
Vit Valek on 14 Jun 2018
Answered: Gayatri Menon on 27 Jun 2018
is possible to call functions (user-defined functions) from Simulink blocks? For example
function y = myadd(u,v) %#codegen
y = sqrt(u+v);
I do not wanna rewrite functions to S-function or use some MATLAB functions. I want to take function and call them from Simulink block.
Gayatri Menon on 27 Jun 2018
Could you check out MATLAB Function block? Please refer the below documentation for more details:
Hope this helps.
More Answers (0)
Find more on Sources in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!