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