From: Aysegul Cilli on
Hello,

I have tried to solve the equations of motion in Matlab using ode45 function but since it is a variable step solver, the results I obtain are not satisfying what should be in real. As the simulation time steps change, due to relative and absolute error needs, we are performing again and again some steps in time domain. But what I need is to run the equations in fixed time steps. However, ode4 and other methods can be used in only simulink. Is there any way to use ode4 function out of simulink, in other words, without constructing the model of my system. Also I can not find ode4 function, for examining its procedure.

What I want to do using ode4 function is actually, to see the change of variables like thrust or mass which are input for my system, with time. If there is any example for use of ode4 with Matlab .m files, and put it for me here, I would very happy; since, I can not find any information about it.

Thanks...
King regards,

Aysegul Cilli
From: Aysegul Cilli on
I found what I have asked.

Thanks...


"Aysegul Cilli" <aysegulcilli.remove.this.(a)gmail.com> wrote in message <hq19fl$fvo$1(a)fred.mathworks.com>...
> Hello,
>
> I have tried to solve the equations of motion in Matlab using ode45 function but since it is a variable step solver, the results I obtain are not satisfying what should be in real. As the simulation time steps change, due to relative and absolute error needs, we are performing again and again some steps in time domain. But what I need is to run the equations in fixed time steps. However, ode4 and other methods can be used in only simulink. Is there any way to use ode4 function out of simulink, in other words, without constructing the model of my system. Also I can not find ode4 function, for examining its procedure.
>
> What I want to do using ode4 function is actually, to see the change of variables like thrust or mass which are input for my system, with time. If there is any example for use of ode4 with Matlab .m files, and put it for me here, I would very happy; since, I can not find any information about it.
>
> Thanks...
> King regards,
>
> Aysegul Cilli