JD-NMF icon indicating copy to clipboard operation
JD-NMF copied to clipboard

Matrix dimensions mismatch in STRAIGHT example

Open SamanthaZhang-stu opened this issue 3 years ago • 1 comments

I am trying to run the JDNMF_STRAIGHT example from the docs. When I run the line 98

H = H.*(W'*(absMix./(W*H + 1e-9)))./(sum(W)'*ones(1,Mixframes));

I get the following error:

矩阵维度必须一致。

I am confused as to what might cause this.

SamanthaZhang-stu avatar Feb 17 '23 07:02 SamanthaZhang-stu

Change the code Wt=Wh(1:all_r*5,:); Ws=Wh(all_r*5+1:end,:); to Wt=Wh(1:size(Ss,1),:); Ws=Wh(size(Ss,1)+1:end,:); may solve the problem.

SamanthaZhang-stu avatar Feb 17 '23 11:02 SamanthaZhang-stu