Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

how do i write this equation?

1 visualizzazione (ultimi 30 giorni)
Reza Ghasemi
Reza Ghasemi il 28 Mag 2020
Chiuso: MATLAB Answer Bot il 20 Ago 2021
hello, how do i write this?
my code is
k = abs(x).*exp(-abs(x))
  2 Commenti
Walter Roberson
Walter Roberson il 28 Mag 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 il 28 Mag 2020
yup i got it thank you

Risposte (1)

Nishant Gupta
Nishant Gupta il 30 Mag 2020
You can use 'int' function to perform integration as following:
syms x;
k = int(abs(x).*exp(-abs(x)),x,[-3,3]);
  1 Commento
Walter Roberson
Walter Roberson il 30 Mag 2020
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