how to use integral function

조회 수: 1 (최근 30일)
nur syafiqah
nur syafiqah 2022년 1월 2일
댓글: Torsten 2022년 1월 2일
i have problem where i need to use integral but it must be function handle.
here my coding
freq_n_1 = 0
freq_n = max (freq)
b = 1./(freq_n-freq_n_1).*(integral(y_amp_transpose,freq_n_1,freq_n));
where my y_amp_transpose in matrix
how can i use this equation
  댓글 수: 1
Torsten
Torsten 2022년 1월 2일
Use "trapz" instead of "integral" :
dt = ...;
t = frq_n_1:dt:freq_n;
summe = trapz(t,y_amp_transpose)

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

답변 (0개)

카테고리

Help CenterFile 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