'Trapz' equivalent in Simulink??

Hello,
I've a graph for which I have to find area under the curve. I tried to copy the graph plot points on Matlab workspace and used function "trapz" to find the area.
Is there anyway I can do the same work as done by trapz in Simulink itself?
Thanks in advance,

回答(1 个)

Subhra Saha
Subhra Saha 2015-10-2

0 个投票

You can use Interpreted MATLAB Function block which applies the specified MATLAB® function or expression to the input. You can specify trapz function in Parameters and Dialog Box. For more information refer to the link below:

类别

帮助中心File Exchange 中查找有关 Numerical Integration and Differentiation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by