Info

此问题已关闭。 请重新打开它进行编辑或回答。

how do i write this equation?

1 次查看(过去 30 天)
Reza Ghasemi
Reza Ghasemi 2020-5-28
关闭: MATLAB Answer Bot 2021-8-20
hello, how do i write this?
my code is
k = abs(x).*exp(-abs(x))
  2 个评论
Walter Roberson
Walter Roberson 2020-5-28
Your k (lowercase) is fine for that; now you just have to integrate that according to the methods of your assignment.

回答(1 个)

Nishant Gupta
Nishant Gupta 2020-5-30
You can use 'int' function to perform integration as following:
syms x;
k = int(abs(x).*exp(-abs(x)),x,[-3,3]);
  1 个评论
Walter Roberson
Walter Roberson 2020-5-30
This Question was really the continuation of another Question, in which the assignment was to use a riemann sum to approximate the integral.

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by