- #1
czechman45
- 12
- 0
I have two matricies.
A is a 3x3x10. C is a 3x10. (A is a changing 3x3 rotation matrix and C is a changing velocity vector)
I want to multiply each 3x3 part of A with the respective 3x1 part of C.
I tried A.*C, but I get the following error: Error using ==> times Number of array dimensions must match for binary array op.
This worked:
for i=1:10
A(:,:,i)*C(:,i)
end
is there a way to not have to do it in a for loop though?
Thanks for your help.
A is a 3x3x10. C is a 3x10. (A is a changing 3x3 rotation matrix and C is a changing velocity vector)
I want to multiply each 3x3 part of A with the respective 3x1 part of C.
I tried A.*C, but I get the following error: Error using ==> times Number of array dimensions must match for binary array op.
This worked:
for i=1:10
A(:,:,i)*C(:,i)
end
is there a way to not have to do it in a for loop though?
Thanks for your help.