I have a measured intensity cross-correlation signal that I want to plot in wavelengthMeasured signal. I am new to FFT and I am using matlab. Here is exactly what I need it to look likeReference

Here is what I have so far:

Im = load('Autocorrellation1.mat');

G = sum(Im.Image);

% sampling frequency in samples per meter
dx = 1e6;


dt = 2/(dx*c);

Fs = 1/dt;

t = 0:dt:(dt*(length(G)-1));

axis tight
xlabel('time (s)')

lpad = 1*length(G);

xdft = fftshift(fft(G,lpad));

xdft = abs(xdft);


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.