From: Zia on
Hi,

I am running a model in simulink. But when ever i run the model i.e start time 0 and stop time 10. It runs it from 9 to 10. I have given a fixed step size of 0.00001. And also if i give a step size of 0.000001 my system hangs or gives the error not enough memory. Can anybody tell me where is the problem?

Regards!
From: Yi Cao on
"Zia " <ziagemini(a)hotmail.com> wrote in message <hq96k9$lud$1(a)fred.mathworks.com>...
> Hi,
>
> I am running a model in simulink. But when ever i run the model i.e start time 0 and stop time 10. It runs it from 9 to 10. I have given a fixed step size of 0.00001. And also if i give a step size of 0.000001 my system hangs or gives the error not enough memory. Can anybody tell me where is the problem?
>
> Regards!

You should use variable time step instead of fixed time step. Also, you need to configure the scope by selecting Data History to de-select "Limit data pointa to last" to get the whole simulation result.

HTH
Yi