Simulink global function call

Hey guys,
I have created a matlab skript in which I am using nested functions. Now I want to transfer some of this code to SIMULINK where I have created a modell.
I tried to use the "Matlab function block" but this one doesn't support nested functions. Imagine this. I have a .m-file in which I specify functions that I want to use in multiple "Matlab Function blocks" in SIMULINK. In C you'd have the #include command in order to specify another file, where the functions are specified.
Is something like this somehow possible???
Please let me know, if you need some more information in order to understand what I am trying to do.
THX and regards

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2012년 11월 7일

0 개 추천

You can remove nested functions and call them as a independent function from your matlab function

댓글 수: 1

Chresten
Chresten 2012년 11월 8일
THX for your quick answer! Your solution is perfect. Just didn't think about it ;)
Regards

댓글을 달려면 로그인하십시오.

카테고리

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

제품

질문:

2012년 11월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by