how to plot exponential function

조회 수: 80 (최근 30일)
Nabila Dwita Naura
Nabila Dwita Naura 2018년 11월 22일
답변: Md. Imran Hossain 2024년 10월 16일
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|)

채택된 답변

madhan ravi
madhan ravi 2018년 11월 22일
syms t
x=exp(-1000*abs(t))
fplot(x)
  댓글 수: 5
madhan ravi
madhan ravi 2018년 11월 22일
Anytime :), make sure to accept the answer if it helped you
JOHN GIL BILOLO
JOHN GIL BILOLO 2021년 5월 5일
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;

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Md. Imran Hossain
Md. Imran Hossain 2024년 10월 16일
Implementing exponential function using MATLAB. clear; clc; m=1; c=2; i=linspace(0,.01,5); y=exp(-i); plot(i,y)

카테고리

Help CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by