I'm supposed to generate a 6 seconds long sine wave that has amplitude of 1.0, frequency of 400Hz at a 8KHz sampling frequency, but I'm not sure how to control how long the wave lasts for.
MATLAB: Generating a 6 second sine wave
homeworksine wave seconds
Best Answer