how to calcuate derivate using simulink
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Seth Popinchalk
am 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 Kommentare
Siehe auch
Kategorien
Mehr zu Computer Vision with Simulink finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!