Matrix dimensions must agree problem.

조회 수: 1 (최근 30일)
Patrick Chad Ablig
Patrick Chad Ablig 2019년 8월 19일
편집: madhan ravi 2019년 8월 19일
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.

답변 (1개)

madhan ravi
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 <

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by