how to plot exponential function

80 visualizaciones (últimos 30 días)
Nabila Dwita Naura
Nabila Dwita Naura el 22 de Nov. de 2018
Respondida: Md. Imran Hossain el 16 de Oct. de 2024
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|)

Respuesta aceptada

madhan ravi
madhan ravi el 22 de Nov. de 2018
syms t
x=exp(-1000*abs(t))
fplot(x)
  5 comentarios
madhan ravi
madhan ravi el 22 de Nov. de 2018
Anytime :), make sure to accept the answer if it helped you
JOHN GIL BILOLO
JOHN GIL BILOLO el 5 de Mayo de 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;

Iniciar sesión para comentar.

Más respuestas (1)

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

Community Treasure Hunt

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

Start Hunting!

Translated by