f=input('enter the value of f=')
t=0:0.01:pi;
y=sin(2*pi*f*t);
plot(t,y)
xlabel('time')
ylabel('output');
title('sine function')

Sine prog

  • 1.
    f=input('enter the valueof f=') t=0:0.01:pi; y=sin(2*pi*f*t); plot(t,y) xlabel('time') ylabel('output'); title('sine function')