Is it possible to run a .m file continuosly by changing the input parameters?

I am having a function in .m file. But the input to this function comes from a simulink block. I passed the input into workspace. But how to run the file continously with changing inputs. I tried using matlab function block but it shows a lot of errors. Is there any method, other than using a matlab function block,to call a function inside a simulink model.

 채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 9월 30일

0 개 추천

Matlab function block doesn't allow all matlab function. You can use Interpreted Matlab Function

댓글 수: 3

what i mean by function is a function file having a code of 100 lines. Is it possible to call a function file using interpreted matlab function.
Yes. click on the blue link above to read the help
Thank u so much sir.....i got the answer....

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Interactive Model Editing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by