The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: error : "Matrix dimensions must agree" at STFT code
Replies: 7   Last Post: Jul 1, 2013 3:07 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 3
Registered: 6/30/13
Re: error : "Matrix dimensions must agree" at STFT code
Posted: Jul 1, 2013 8:02 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

asif khan <> wrote in message <>...
> 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
> 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(N-M,1); % zero padding (to be inserted) "

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.