To generate discrete time sequences

34 visualizaciones (últimos 30 días)
Aniket Jadhav
Aniket Jadhav el 28 de Nov. de 2022
Respondida: Aniket Jadhav el 28 de Nov. de 2022
%unit impule
%unit step
%ranp
%exponential
%sine and cosine
t=(-1:0.1:1);
a=(-10:0.1:10);
r=(-1:0.1:1);
impule = t==0;
subplot(4,4,1:2);
stem(t,impule);
title('Unit Impulse');
step = t>=0;
subplot(4,4,3:4);
stem(t,step);
title('unit step');
ramp = r;
subplot(4,4,5:6);
stem(r,ramp);
title('ramp');
expn = exp(t);
subplot(4,4,7:8);
stem(t,expn);
title('exponential');
x=sin(a);
subplot(4,4,9:12);
stem(a,x);
title('Sine Wave');
y=cos(a);
subplot(4,4,13:16);
stem(a,y);
title('cosine wave');

Respuesta aceptada

Aniket Jadhav
Aniket Jadhav el 28 de Nov. de 2022
%unit impule
%unit step
%ranp
%exponential
%sine and cosine
t=(-1:0.1:1);
a=(-10:0.1:10);
r=(-1:0.1:1);
impule = t==0;
subplot(4,4,1:2);
stem(t,impule);
title('Unit Impulse');
step = t>=0;
subplot(4,4,3:4);
stem(t,step);
title('unit step');
ramp = r;
subplot(4,4,5:6);
stem(r,ramp);
title('ramp');
expn = exp(t);
subplot(4,4,7:8);
stem(t,expn);
title('exponential');
x=sin(a);
subplot(4,4,9:12);
stem(a,x);
title('Sine Wave');
y=cos(a);
subplot(4,4,13:16);
stem(a,y);
title('cosine wave');

Más respuestas (0)

Categorías

Más información sobre Operators and Elementary Operations en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by