Simulink integral error in plant modeling

1 view (last 30 days)
Hello,
To measure distance traveled by an object we can use integrate block on velocity and get it or we can use area under the velocity to get the displacement both will give same result if we use small time step.This works good for almost all cases, but in some cases the integral values are higher than the other and it is not logical. If the value i want to integrate is feed from work-space file it give same result as other one. I don't know why integrator block giving two results for same value.
  5 Comments
srinivas SWAMINATHAN
srinivas SWAMINATHAN on 16 Nov 2017
Variable step solver with 0.01s step size. I have also shared the the data file.
srinivas SWAMINATHAN
srinivas SWAMINATHAN on 16 Nov 2017
If i use this data file from workspace file i will get different result. This data was output of another block model if it fed directly it gives one result and if it is fed from workspace it gives another result.Ihe result from workspace and simple line under the area gives same result. but another one gives higher value.

Sign in to comment.

Answers (0)

Categories

Find more on Modeling in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!