Matrix dimensions must agree problem.
1 回表示 (過去 30 日間)
古いコメントを表示
tx1 = times(freq,MP.d); %1x100 matix
tx2 = times((m-1),sind(MP.theta_vec)); %1000x7
tx3 = times(tx2,tx1); %Matrix dimensions must agree.
Is there another way to resolve this? Thanks.
0 件のコメント
回答 (1 件)
madhan ravi
2019 年 8 月 19 日
編集済み: madhan ravi
2019 年 8 月 19 日
tx1.*tx2(:) % error is gone who knows if the logic is right.
times(tx1,tx2(:))
% bsxfun(@times,tx1,tx2(:)) if 2016a <
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!