I have a problem with calculating fft for a signal which is stored in a matrix using matlab. I am trying to calculate fft for each column.
I am trying to do this like this:
for k = 1: ncol
y1(k)= fft(y(:,k));
end
where y
is my matrix and and ncol
is number of columns in matrix but I'm still getting the following error:
In an assignment A(:) = B, the number of elements in A and B must be the same.