Output derivative for lookup table
6 views (last 30 days)
Show older comments
Hello everyone
I have input (x) and output (y) data vectors, but instead of outputting the data value y, I want the the Simulink block to output the derivative (dy/dx) instead.
Can this be achieved?
Ben
(PS: Here's what I tried. Take the time derivative dy/dt. And the time derivative dx/dt. Divide the two, get dy/dx. But, as a trial, I tried putting a horizontal y data vector for a monotonically increasing x data vector. In this case dy/dx should always be zero. Simulink gave me an error because they detected NaN at time t=0)
1 Comment
Kaustubha Govind
on 14 Feb 2013
Could it be because dx/dt=0 at t=0? Can you plot both values individually without the division to verify this.
Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!