Simulink use user-defined functions
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Vit Valek
am 14 Jun. 2018
Beantwortet: Gayatri Menon
am 27 Jun. 2018
Hi,
is possible to call functions (user-defined functions) from Simulink blocks? For example
function y = myadd(u,v) %#codegen
y = sqrt(u+v);
end
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.
Thanks!
Vit
0 Kommentare
Akzeptierte Antwort
Gayatri Menon
am 27 Jun. 2018
Hi,
Could you check out MATLAB Function block? Please refer the below documentation for more details:
Hope this helps.
Thanks
Gayatri
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Simulink Functions finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!