Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

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

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

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 <asifkhanmohmd@gmail.com> wrote in message <77c3d288-5700-4c23-b645-982442833afb@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
> 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]

© Drexel University 1994-2015. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.