To generate discrete time sequences

35 vues (au cours des 30 derniers jours)
Aniket Jadhav
Aniket Jadhav le 28 Nov 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');

Réponse acceptée

Aniket Jadhav
Aniket Jadhav le 28 Nov 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');

Plus de réponses (0)

Catégories

En savoir plus sur Operators and Elementary Operations dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by