how to plot exponential function

75 ビュー (過去 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 Center および File ExchangeCalculus についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by