Simulink use user-defined functions
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Vit Valek
il 14 Giu 2018
Risposto: Gayatri Menon
il 27 Giu 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 Commenti
Risposta accettata
Gayatri Menon
il 27 Giu 2018
Hi,
Could you check out MATLAB Function block? Please refer the below documentation for more details:
Hope this helps.
Thanks
Gayatri
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Simulink Functions in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!