Hi guys,

I have a matrix A = [ 1;9;1;4;4;6]

Is there any efficient way other than writing a loop that reach the result,

B = 1*9*1*4*4*6 = 864

Thanks a lot

==== Problem solved. Those comments are really useful!

Skip to content# MATLAB: [Quick Question]Multiplications of all elements

###### Related Question

multiplication

Hi guys,

I have a matrix A = [ 1;9;1;4;4;6]

Is there any efficient way other than writing a loop that reach the result,

B = 1*9*1*4*4*6 = 864

Thanks a lot

==== Problem solved. Those comments are really useful!

- Multiplication of column elements of a matrix
- How to obtain all possible combinations of given vectors in MATLAB
- Cumprod row and column
- Multiply each element of a vector with a matrix
- Quicker function than repmat to multiplay matrices with vectors
- Matlab command for the following symbol: ∏ (Capital Pi / product of a sequence of terms)
- Question related to vectorized matrix operation.

## Best Answer