I cannot integrate my signal
이전 댓글 표시
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
Walter Roberson
2021년 5월 24일
Please show us more details.
Star Strider
2021년 5월 24일
Arya Akhtar
2021년 5월 24일
편집: Arya Akhtar
2021년 5월 24일
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.
Arya Akhtar
2021년 5월 24일
편집: Arya Akhtar
2021년 5월 24일
답변 (2개)
David Hill
2021년 5월 24일
x=10e5;
t=0:50;
f=exp(t);
i=cumtrapz(f);
plot(t,i);
댓글 수: 2
Arya Akhtar
2021년 5월 24일
David Hill
2021년 5월 24일
If exp(t) is the upper envelope, what is the lower envelope?
format long g
t=0:50
f=exp(t)
[up_env, low_env] = envelope(f)
integral = cumtrapz(up_env - low_env);
plot(t, integral)
카테고리
도움말 센터 및 File Exchange에서 Numerical Integration and Differentiation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

