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.

 Accepted Answer

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

3 Comments

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....

Sign in to comment.

More Answers (0)

Categories

Community Treasure Hunt

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

Start Hunting!