You are on page 1of 1

f=input('enter the frequency of signal\n');

t=0:0.05:1;
x=40*sin(2*pi*f*t);
stem(t,x);
grid on;

You might also like