MATLAB Answers

0

Error when multiplying two vectors

Asked by Lev Mihailov on 10 Jul 2019
Latest activity Answered by Andrei Bobrov
on 10 Jul 2019
Hello! I have two vectors of data that I need to multiply with each other and then podoleit
B = zeros(1,2);
IWant = [a B];
Want=IWant*lett+20/lett+1;
% 'a' dimensions 1x1101
% IWant 1x1103
% lett 1x1103
Error using *
Inner matrix dimensions must agree.

  0 Comments

Sign in to comment.

Tags

Products

1 Answer

Answer by Andrei Bobrov
on 10 Jul 2019
 Accepted Answer

Use .* and ./:
Want=IWant.*lett+20./lett+1;

  0 Comments

Sign in to comment.