Question: Matlab/Octave Question: Write a program to generate a column of numbers in Matlab or Octave. This column should be the sum of three or four
Matlab/Octave Question:
Write a program to generate a column of numbers in Matlab or Octave. This column should be the sum of three or four sinusoidal functions (sine or cosine) at different frequencies as well as some randomly-generated noise. Something like:
f (x) = 12.6 sin (10x) 5.8 cos (4x) + randn(size(x)) (1)
would do nicely. Choose amplitudes for the sine waves that are much bigger than the noise (> factor of four) and choose frequencies that are integers less than 20. The point here is just that the amplitudes and frequencies are unknown to another student, not that theyre mean or tricky.
Write this column of data to a file.
Please do this as simply as possible, and include comments on every line explaining what is being done- even if it seems elementary.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
