I cannot integrate my signal
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello,
I have been trying to take non-symbolic and indefine integral of an envelope of a function by using trapz, cumtrapz. But I keep encountering with a straight line. How can I fix this?
Any help will be appriciated.
5 commentaires
Walter Roberson
le 24 Mai 2021
format long g
x=10e5;
t=0:50
f=exp(t)
envelopeoff=envelope(f)
integral=cumsum(envelopeoff)
plot(integral)
That does not appear to be a straight lne.
Note that your values are quite large, above 1e21, because exp(50) is pretty large.
Réponses (2)
Walter Roberson
le 24 Mai 2021
format long g
t=0:50
f=exp(t)
[up_env, low_env] = envelope(f)
integral = cumtrapz(up_env - low_env);
plot(t, integral)
0 commentaires
Voir également
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!

