Alessio
Implement the switch condition externally, using Logical / Relational
Operator blocks for instance, and pass a boolean to the switch. The
switch mask can then be set to ~=0.
HTH,
Ashish.
Stratox <str...@invalid.inv> wrote in message <47960725$0
$37194$4faf...@reader3.news.tin.it>...
Thanks for the answer, it seems to be the only solution!
First, in your Simulink model, you need to set up the
configuration parameters. Check the input [t u], output
yout and set proper solver and simulation time.
Then, in your m-script, you need to set up value for [t u]
as the input to your simulation model. call sim('model')
you'll get yout in the workspace. That's the output of
your Simulink model.
"Meghan McGookin" <m.mcgook...@gla.ac.uk> wrote in
message <fjjmik$ppc$1...@fred.mathworks.com>...
> I have a complex mathematical model in Simulink block (2
> inputs and 7 outputs). Currently, I am writing a program
to
> control the mathematical model in Matlab script (m-file).
> How can I 'convert' or call for the Simulink block from
> within the m-file? The model will be running in a 'for'
> loop, hence using the input or output workspace is not
> practical.
>
My problem is I hv a complex simulink program and i have to
use my simulink model output in my M-file program, how can
I use yout in my m-file??? bcoz yout is not coming in
workspace...i also try
v = evalin('base', 'yout'); but yout is not in
workspace, same problem
do u have any idea plz help me
Kind Regards