From: Clement Fourmaux on
Hey Mathieu,

Thanks a lot for your help, it works just like wanted too !
see you on MatlabCentral
Clement

"Mathieu Claeys" <mathieu.claeys-deletethis-(a)gmail.com>
wrote in message <fv9lbj$6it$1(a)fred.mathworks.com>...
> Hello Clement,
> I don't think it is possible to have some kind of
> persistent scope to display several past simulations
> together with the new one. But you could save your signal
> in the workspace and plot several simulation results on
> the same plot) . If your signal is connected to a top-view
> out port, let's say outport 2 (you could use alternatively
> To Workspace blocks), this is how I would do it:
>
> for myparam=10:100:1010
> [t,x,y] = sim(mymodel,.....)
> plot(y.time,y.signals(2).values)
> hold all
> end
>
> Note:
> -myparam is the name of the changing parameter.
> -the code above works if 'SaveFormat' is set
> to 'StructureWithTime' (see model options or simset)
> -you might also want to change the option 'SrcWorkspace'
> to match the workspace where myparam lies (see simset).
>
> Mathieu
>
> "Clement Fourmaux" <frenchclem17(a)hotmail.com.NO.SPAM>
> wrote in message <fv4756$css$1(a)fred.mathworks.com>...
> > Hi,
> >
> > I think my prob is really easy to solve ... I did it once
> > but can?t remember it now !
> > I have my simulink prog runnin : A transfert function
> with
> > different parameters !
> >
> > Now what I wanna do is to simlulate it with different
> value
> > for one variable to see how it modify the response
> >
> > For exemple : Simulating a RLC circuit and making R going
> > from 10 to 1010 with a step of 100, and then showing the
> 10
> > curves in the scope !
> >
> > Thanks a lot for the help
> > Cheers
>