how to calcuate derivate using simulink
6 ビュー (過去 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!