JD-NMF
JD-NMF copied to clipboard
Matrix dimensions mismatch in STRAIGHT example
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.
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.