Mutiply 4d array of size (360,210,63,48) by vector of length 48?
Mostrar comentarios más antiguos
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.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!