For example is it possible to find all the values greater than 1 in matrix 1 and multiply all the values greater than 1 by 2, so that you get something like matrix 2 without using a loop? matrix1 = [1 2 3; 4 5 6; 7 8 9] matrix2 = [1 4 6; 8 10 12; 14 16 18]
MATLAB: Is it possible to multiply elements in a matrix greater than a certain value without using a loop
loopsreplace elements
Related Question
- How to reshape a 2D to 3D matrix without using loops (reshape) and keeping a particular order of the elements// Wrong arragement of elemts after using “reshape”
- How to combine two matrices
- How to concatenate rows
- Reshape 3d matrix to obtain a column vector
- How to reshape this matrix
- Convert matrix and horizontally catenate
- Convert array into column vector – by row rather than column
Best Answer