Clear Filters
Clear Filters

'Trapz' equivalent in Simulink??

7 views (last 30 days)
Tejeshwar Anbazhagan
Tejeshwar Anbazhagan on 17 Sep 2015
Answered: Subhra Saha on 2 Oct 2015
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,

Answers (1)

Subhra Saha
Subhra Saha on 2 Oct 2015
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:

Community Treasure Hunt

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

Start Hunting!