Generating a Sinusoidal Signal of a given frequency (say, 100Hz) and Plotting with Graphical Enhancements - Titling, Labelling, Adding Text, Adding Legends
>> f=100;
>> t=0:0.0001:5;
>> y=sin(2*pi*f*t);
>> plot(t,y);
>> ylabel('amplitude');
>> xlabel('time index');
>> title('sin wave');
>> legend('y=sin(2*pi*f*t)');