% Noisy Signal
% Use Fourier transforms to find the frequency components of a signal buried
% in noise.
%
% Specify the parameters of a signal with a sampling frequency of 1 kHz and
% a signal duration of 1 second.
% Copyright 2015 The MathWorks, Inc.
Fs = 1000; % Sampling frequency
T = 1/Fs; % Sampling period
L = 1000; % Length of signal
t = (0:L-1)*T; % Time vector
%%
% Form a signal containing a 50 Hz sinusoid of amplitude 0.7 and a 120 Hz
% sinusoid of amplitude 1.
S = 0.7*sin(2*pi*50*t) + sin(2*pi*120*t);
%%
% Corrupt the signal with zero-mean white noise with a variance of 4.
Y = fft(S);
这个是MATLAB2016B中得语句,怎么用C语言编译