
Re: error : "Matrix dimensions must agree" at STFT code
Posted:
Jul 1, 2013 8:02 AM


asif khan <asifkhanmohmd@gmail.com> wrote in message <77c3d28857004c23b645982442833afb@googlegroups.com>... > yes, it is > > Xtwz(:,1) = fft(Xtwz);> line 21
I corrected the initial problem with the matrix dimentions of w and xt by inverting the matrix w (w=w') but now when i try to run the program i get:
"Warning: Integer operands are required for colon operator when used as index > In mystft at 9
Error using horzcat Dimensions of matrices being concatenated are not consistent.
Error in mystft (line 19) xtwz = [xtw(Mo2+1:M), zp, xtw(1:Mo2)]; % windowed, zero padded"
where line 9 is: " zp = zeros(NM,1); % zero padding (to be inserted) "

