- #1
Meurig
- 6
- 0
Hi everyone,
I'm trying to make my MATLAB code run as efficiently as possible.
II have a 2xN vector designated like so:
acc1(1,:) = A*rc(1,:);
acc1(2,:) = B*rc(2,:);
where A and B are scalars,.
Is it possible to combine these two into a single line of code?
Cheers
I'm trying to make my MATLAB code run as efficiently as possible.
II have a 2xN vector designated like so:
acc1(1,:) = A*rc(1,:);
acc1(2,:) = B*rc(2,:);
where A and B are scalars,.
Is it possible to combine these two into a single line of code?
Cheers