Simulink use user-defined functions
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
Gayatri Menon
2018 年 6 月 27 日
Hi,
Could you check out MATLAB Function block? Please refer the below documentation for more details:
Hope this helps.
Thanks
Gayatri
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Simulink Functions についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!