how to calcuate derivate using simulink
5 views (last 30 days)
Show older comments
I am using derivate block of simulink. my first question is am i right in assuming that for any given function this block i.e. derivate block calcualtes the derivate of the given function with respect to time. If it is so , then for example if i have two variable pressure P and volume V then how can I find derivate of dP/dV using simulink. Any suggestion.
0 Comments
Answers (1)
Seth Popinchalk
on 22 Apr 2011
The derivative block computes a time based derivative, using a difference ratio (not an analytic derivative).
There is no block that computes the derivative of one signal relative to to another like you are looking for. You can use memory blocks (P(n) -> Memory -> P(n-1)), sums, and division to compute the dP/dV you are looking for.
dP/dV = {P(n)-P(n-1)}/{V(n)-V(n-1)}
The accuracy of this technique depends a great deal on the step sizes of the simulation, and how fast the signals are changing per step. Also, if you are using a variable step solve, consider making the equation discrete (fixed sample time) to avoid uncertainty about the effect of step size.
0 Comments
See Also
Categories
Find more on Computer Vision with Simulink in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!