Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

how do i write this equation?

1 Ansicht (letzte 30 Tage)
Reza Ghasemi
Reza Ghasemi am 28 Mai 2020
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
hello, how do i write this?
my code is
k = abs(x).*exp(-abs(x))
  2 Kommentare
Walter Roberson
Walter Roberson am 28 Mai 2020
Your k (lowercase) is fine for that; now you just have to integrate that according to the methods of your assignment.
Reza Ghasemi
Reza Ghasemi am 28 Mai 2020
yup i got it thank you

Antworten (1)

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

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by