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

 채택된 답변

Gayatri Menon
Gayatri Menon 2018년 6월 27일

0 개 추천

Hi,
Could you check out MATLAB Function block? Please refer the below documentation for more details:
Hope this helps.
Thanks
Gayatri

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Simulink Coder에 대해 자세히 알아보기

질문:

2018년 6월 14일

답변:

2018년 6월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by