I have a code set up to calculate frequency from 20 different time columns and print 20 different frequencies.
However, I need to turn all these columns into 1 column. The problem I am running into is that it calculates freq each for loop, and I have allFreq=freq(:) before the for loop ends. However, it just prints the 20th freq calculation, instead of 1-20 on top of each other. Is there anyway to make it to where each time freq is calculated, it is added below the previous freq in the allFreq column?
DeltaT(r,1) = time(3,r) - time(2,r);
fhat = fft(Acceleration(:,s),ne(s,1));
PSD = 98.1 * (fhat.*conj(fhat)/ne);
freq = 1/(DeltaT(s,1)*ne(s,1))*(0:ne(s,1));
PSDClean = (PSD.*indices);