how to use integral function

1 vue (au cours des 30 derniers jours)
nur syafiqah
nur syafiqah le 2 Jan 2022
Commenté : Torsten le 2 Jan 2022
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 commentaire
Torsten
Torsten le 2 Jan 2022
Use "trapz" instead of "integral" :
dt = ...;
t = frq_n_1:dt:freq_n;
summe = trapz(t,y_amp_transpose)

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Numerical Integration and Differentiation dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by