Cell Final is (1×15) and it has vectors each 1×2545. I want to run fft function for each vector of cell Final using a for loop. Ultimately I have to compare data from all the 15 row vectors. Here what I have tried:
Final=1x15 cell and each element is a 1x2545 vectorFs = 1.0173e+03; % Sampling frequency
L = 2500; % Length of signal
NFFT = 2^nextpow2(L); f=Fs/2*linspace(0,1,NFFT/2+1);for yy=1:length(Final); YY= fft(Final(1),NFFT)/L; YY(1)=[]; power=(2*abs(YY(1:NFFT/2+1))); plot(f,power);end
Best Answer