how to plot exponential function

297 views (last 30 days)
hello! so i am kinda confused with how to change this to matlab code, because i've tried exp*(-1000*|t|) still not working
pls help me! thank you!
x(t)=exp(-1000|t|)

Accepted Answer

madhan ravi
madhan ravi on 22 Nov 2018
syms t
x=exp(-1000*abs(t))
fplot(x)
  5 Comments
madhan ravi
madhan ravi on 22 Nov 2018
Anytime :), make sure to accept the answer if it helped you
JOHN GIL BILOLO
JOHN GIL BILOLO on 5 May 2021
t=linspace(0,30,5000);
x=exp(-2000.*abs(t));
y=fft(x);
xlabel('chito');
ylabel('loko');
plot(t, abs(y),'g--'), title('Amplitude tsamba lang');
plot(t, angle(y),'g--'), title('Exponential kunwari');
grid;

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!