diff --git a/PlottingTool.mlapp b/PlottingTool.mlapp index 8729be6..bcad1f3 100644 Binary files a/PlottingTool.mlapp and b/PlottingTool.mlapp differ diff --git a/fourierPlotFnc.m b/fourierPlotFnc.m index 5d56001..4a49561 100644 --- a/fourierPlotFnc.m +++ b/fourierPlotFnc.m @@ -17,12 +17,9 @@ function fourierPlotFnc(data, fileSettings, checkboxes, start, stop, yAxis, chan %TO DO end - %Don't really now what I am doing here. fs = 1 / fileSettings{3}.Value; - Nfft = 2^nextpow2(length(yData)); - yData = fft(yData, Nfft); - Nspec = 256; + Nspec = 1024; wspec = hamming(Nspec); Noverlap = Nspec/2; @@ -31,14 +28,7 @@ function fourierPlotFnc(data, fileSettings, checkboxes, start, stop, yAxis, chan spectrogram(yData, wspec, Noverlap, Nspec, fs, 'yaxis'); title(channels{channel}); - - %Plot the channel -% hold on -% figure(channel) -% spectrogram(yData, 'yaxis'); -% title(channels{channel}); - - %Save plot + saveFigs('fourier', figure(channel), channels(channel), path, fileSettings{1}.Value) %reset