To generate discrete time sequences

%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

0 votos

%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 Centro de ayuda y File Exchange.

Preguntada:

el 28 de Nov. de 2022

Respondida:

el 28 de Nov. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by