I'm using the simulink function block to simulate the differential equation xdot = -x+x^2
And at the same time, I'm generating the same function manually, using a multiplier and a comparator.
both simulations use an integrator block to compute the derivative xdot where the initial condition of the integrator is set to an interval [-0.5:0.5:0.5]
.
I can not figure out why I'm getting different responses from these similar simulations ? notice that the manually build simulation response is the right one.
Here is the simulink model: diff equa model