MATLAB Answers

0

Matrix dimensions must agree problem.

Asked by Patrick Chad Ablig on 19 Aug 2019 at 8:28
Latest activity Edited by madhan ravi
on 19 Aug 2019 at 8:47
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 Comments

Sign in to comment.

1 Answer

Answer by madhan ravi
on 19 Aug 2019 at 8:38
Edited by madhan ravi
on 19 Aug 2019 at 8:47

tx1.*tx2(:) % error is gone who knows if the logic is right.
times(tx1,tx2(:))
% bsxfun(@times,tx1,tx2(:)) if 2016a <

  0 Comments

Sign in to comment.