In order to get started and learn MATLAB interactively, at your own pace, we provide complimentary access to MATLAB Onramp. This training is available through the MATLAB Help menu or it can be accessed online by clicking the link below.
The way signals are generated herehttp://www.mathworks.es/es/help/matlab/ref/fft.html is what you are looking for.The only parameter to change is the frequency. In your case your frequencies are 0.05 and 0.15 Hz.
Fs = 1000; % Sampling frequency
T = 1/Fs; % Sample time
L = 1000; % Length of signal
t = (0:L-1)*T; % Time vector
% Sum of a 0.05 Hz sinusoid and a 0.15 Hz sinusoid
Best Answer