When I solve the ordinary differential equation using Simulink and ODE45 function in MATLAB, they return different results. I use the fixed step ode4 (Runge Kutta) solver in Simulink to solve the ode.
Run the attached files lumped_parameter_P6_4.m and lumper_parameter.mdl and compare the output from both the methods. The maximum and the minimum output values are supposed to be 45 and 65 in both the cases. Simulink gives the correct output while ODE45 returns minimum and maximum values between 45 and 65.
Best Answer