Running M-file from Simulink
Running M-file from Simulink
(OP)
Hi colleges,
Is it possible to run m-file directly from Simulink, I mean when I press Simulation/Start button?
Regards, Zoran
Is it possible to run m-file directly from Simulink, I mean when I press Simulation/Start button?
Regards, Zoran





RE: Running M-file from Simulink
RE: Running M-file from Simulink
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