Mutiply 4d array of size (360,210,63,48) by vector of length 48?
Show older comments
I have a 4d array Final of size (360,210,63,48) that I want to multiply by the vector [0:1/12:3.99] which is length 48. For example, I want Final2=(Final(:,:,:,1).*0, Final(:,:,:,2).*0.0833) etc. I have tried Final2=Final.*[0:1/12:3.99] but I get the error ??? Error using ==> times Number of array dimensions must match for binary array op.
Any suggestions? I know I can do this in a loop, but I would much prefer not to.
Accepted Answer
More Answers (0)
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!