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.
Reza Ghasemi
Reza Ghasemi 2020년 5월 28일
yup i got it thank you

답변 (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