Q：Plotting sine wave in MATLAB 
Q：在MATLAB中绘制正弦波 
I need to plot a sine wave of analog frequency of 8Hz, with a sampling rate of 5000/sec and a duration of 5 seconds. Is this the correct way of how to do it?

I need to plot a sine wave of analog frequency of 8Hz, with a sampling rate of 5000/sec and a duration of 5 seconds. Is this the correct way of how to do it?

answer1：  回答1： 
The sin wave is given by So The correct code is
And the sin wave Matlab plot is here 
罪恶波是由 所以正确的代码是
And the sin wave Matlab plot is here 
matlab sine 