フィルターのクリア

Change derivative in simulink

5 ビュー (過去 30 日間)
ANANTA BIJOY BHADRA
ANANTA BIJOY BHADRA 2022 年 2 月 24 日
回答済み: Benjamin Thompson 2022 年 3 月 2 日
The derivative block in simulink has the build in block where the derivation is done with respect to time (t). But if I need to derivate a function y with respect to x, how can I edit the block?

回答 (1 件)

Benjamin Thompson
Benjamin Thompson 2022 年 3 月 2 日
You can use principals of calculus to differentiate a function and then implement the derivative in blocks in Simulink. For example, the derivative of f(x) = x^2 is 2*x. So you would just multiply your input value x by 2 to get the derivative.
Or if you are talking about numeric differentiation, that might be a lookup table. If you have y = f(x) as a table of numbers, then you can approximate that derivative of f(x) using two lookup tables in Simulink and the approximation dy/dx ~ (f(x+dx) - f(x))/dx. On second thought you probably would just make a new lookup table for dy/dx as a function of X and then have Simulink use that.

カテゴリ

Help Center および File ExchangeEvent Functions についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by