How to find the integral of some values?

조회 수: 3 (최근 30일)
RoBoTBoY
RoBoTBoY 2020년 6월 27일
댓글: Star Strider 2020년 6월 28일
Hello community!
I have a file on excel with some values which are the output signal. So, I want to find the integral of these values.
How to do that in Matlab or Simulink?
PS. I have imported the excel file on workspace
Thanks in advance!

채택된 답변

Star Strider
Star Strider 2020년 6월 27일
use the trapz (or cumtrapz) function (depending on the result you want). It would be best to also have an independent variable (for example, time) as well as part of the integration, if you have access to it.
  댓글 수: 6
RoBoTBoY
RoBoTBoY 2020년 6월 28일
Thank you very much!
Star Strider
Star Strider 2020년 6월 28일
As always, my pleasure!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by