how to calcuate derivate using simulink
조회 수: 5 (최근 30일)
이전 댓글 표시
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
답변 (1개)
Seth Popinchalk
2011년 4월 22일
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
참고 항목
카테고리
Help Center 및 File Exchange에서 Computer Vision with Simulink에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!