function [output] = do_lab3(data, secs, fig, str)

[N,trash]=size(data);

dataFFT=fft(data);

Fs=N/secs;
Ts=1/Fs;
DELTAF=1/(N*Ts);
FREQ=0:DELTAF:Fs/2;
FREQ=FREQ';

figure(fig)
plot(FREQ(1:N/2), abs(dataFFT(1:N/2)));
title(str);
