Quantcast
Channel: MATLAB Central Newsreader Recent Posts
Viewing all articles
Browse latest Browse all 19628

Re: error : "Matrix dimensions must agree" at STFT code

$
0
0
On 6/30/2013 7:05 AM, Tilemachos wrote:
...

> Then when i try to apply the function "mystft" I get the error : "Error
> using .* /Matrix dimensions must agree./ Error in mystft (line 16)/
> xtw = w.*xt; % apply window to current frame"
>
...

> ...I dont know how can i get rid of this error.
>

Your (or TMW's, I didn't check headers) wrapped lines so badly I didn't
try to read the code, but--

dbstop on error

That will bring up the debug prompt and you can investigate what's what
at that point.

Look first at

size(w)

and

size(xt)

Both need to be the same for a point-by-point multiplication to succeed.

Whatever it is that caused that not to be so is the culprit.

--

Viewing all articles
Browse latest Browse all 19628

Trending Articles