clear all
close all
load WSStructData.mat

monthNum = 9;
index = 1;
for i=1:length(filename)
    a = datestr(WSStruct(i).timeStamp,5);
    b = str2num(a);
    mRows = find(b == monthNum);
    for j=1:length(mRows)
        if (sum(isnan(WSStruct(i).spectrum(j,:)) == 0))
            spect4OneMonth(index,:) = interp1(WSStruct(i).freqVector, WSStruct(i).spectrum(j,:),x2);
        end
        index = index + 1;
    end
end
