Sampling issue, or something else? Simulation does not match graph ode
Sampling issue, or something else? Simulation does not match graph ode
(OP)
Was wondering if anyone has had this problem -
take a simple ode and solve it using the classical method.
Graph your output.
Go ahead and use simulink to layout and solve by way of simulation and compare the two outputs.
What I have noticed is simulinks scope output will not match the equation during the first few time periods.
Just to check my math - I went ahead and solved the ode within matlab using a solver and graphed it. The output matched my hand calc, but not the simulink output (i used the same solver in matlab and simulink).
I'm guessing this has to do with the response time of the simulation (simulink can not react fast enough to acurately show the output curve), but im not sure how to possibly slow the sim down enough (or add enough points) to prove this.
Anyone else notice this? If so were you able to find a way to have the simulink output match?
Here's the ODE i'm playing with (it's a pretty simple one): ∂2y/∂t + 6 ∂y/∂t + 5 y = ∂f/∂t + 2f
take a simple ode and solve it using the classical method.
Graph your output.
Go ahead and use simulink to layout and solve by way of simulation and compare the two outputs.
What I have noticed is simulinks scope output will not match the equation during the first few time periods.
Just to check my math - I went ahead and solved the ode within matlab using a solver and graphed it. The output matched my hand calc, but not the simulink output (i used the same solver in matlab and simulink).
I'm guessing this has to do with the response time of the simulation (simulink can not react fast enough to acurately show the output curve), but im not sure how to possibly slow the sim down enough (or add enough points) to prove this.
Anyone else notice this? If so were you able to find a way to have the simulink output match?
Here's the ODE i'm playing with (it's a pretty simple one): ∂2y/∂t + 6 ∂y/∂t + 5 y = ∂f/∂t + 2f





RE: Sampling issue, or something else? Simulation does not match graph ode
TTFN
FAQ731-376: Eng-Tips.com Forum Policies
Chinese prisoner wins Nobel Peace Prize
RE: Sampling issue, or something else? Simulation does not match graph ode
Cheers
Greg Locock
New here? Try reading these, they might help FAQ731-376: Eng-Tips.com Forum Policies http://eng-tips.com/market.cfm?
RE: Sampling issue, or something else? Simulation does not match graph ode
One thing to mention was that solveing the ode at ICs a=0 a'=1 seems to match simulink with 1/s blocks I.C.'s set to 0,0.
The curve will always "top out" at .4 by way of the equation, on or about 4t; I'm just stumped.
Thanks to all who have answered so far!
RE: Sampling issue, or something else? Simulation does not match graph ode
Fe
RE: Sampling issue, or something else? Simulation does not match graph ode
RE: Sampling issue, or something else? Simulation does not match graph ode
Maybe you are usisng a varibale step solver in Simulink