Professional Documents
Culture Documents
Maddy
Maddy
1
y=(a.^t)
plot(t,y)
t=0:0.001:5;f=2
y=sin(2*pi*f*t)
plot(t,y)
t=0:0.001:1;f=2
y=sawtooth(2*pi*f*t,0.8)
plot(t,y,'r')
t=-1:0.0001:1;
y=rectpuls(t,0.4)
plot(t,y)
t=-1:0.0001:1;
y=rectpuls(t)
plot(t,y)
COMPUTE
x=input('enter')
ex=energy(x)
figure(1)
subplot(211)
stem(x)
subplot(212)
stem(ex)