Info
This question is closed. Reopen it to edit or answer.
how do i write this equation?
1 view (last 30 days)
Show older comments
hello, how do i write this?
my code is
k = abs(x).*exp(-abs(x))

Answers (1)
Nishant Gupta
on 30 May 2020
You can use 'int' function to perform integration as following:
syms x;
k = int(abs(x).*exp(-abs(x)),x,[-3,3]);
1 Comment
Walter Roberson
on 30 May 2020
This Question was really the continuation of another Question, in which the assignment was to use a riemann sum to approximate the integral.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!