Integration of exponential function

Hello,
I am trying to do the integration of the integral below. I am expecting help. Thanks!

Answers (1)

KSSV
KSSV on 26 Oct 2021
Edited: KSSV on 26 Oct 2021
syms t y(x)
f = y(x)*exp(-2*(t-x)) ;
int(f,x,0,t)
ans = 

2 Comments

Thank you for quick response. The both variable x and t runs from 0 to 20 (say). For the value of x equal to 1, 4, 7 y(x) is equal to value 5 (say). y(x) is equal to 0 at other values of x. How do I insert this condition in above integral to calculate y(t)? Any advice is appreciated.
If you got answer please share here.

Sign in to comment.

Categories

Find more on Mathematics in Help Center and File Exchange

Asked:

on 26 Oct 2021

Commented:

on 22 Feb 2022

Community Treasure Hunt

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

Start Hunting!