Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running M-file from Simulink

Status
Not open for further replies.

zoki

Electrical
Mar 19, 2003
1
Hi colleges,

Is it possible to run m-file directly from Simulink, I mean when I press Simulation/Start button?

Regards, Zoran
 
Replies continue below

Recommended for you

Yes of course it is possible !
If you want to load data, for example, you can use the matlab function block.

If you want to connect the function to other simulink blocks, you need to use the s-function block.
It is really useful to perform user-defined actions, like real-time animations for example, even if it slozs down the calculation because the matlab code is interpreted at each iteration.

Cheers

Benoit
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor