logical operation on matrix
Show older comments
Update matrix A so that all odd values will be subtracted by 1
A=[1 2 3;4 5 6; 4 5 2]
rem(A,2)-1%WRONG
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!