Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • 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
Joined
Mar 19, 2003
Messages
1
Location
MK
Hi colleges,

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

Regards, Zoran
 
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

Back
Top