Clear Filters
Clear Filters

replace values in matrix A based on values of matrix B

1 view (last 30 days)
replace values in matrix A to zero, if values in matrix B from the same position is equal to zero...

Accepted Answer

Walter Roberson
Walter Roberson on 20 Feb 2017
A(B==0) = 0;

More Answers (0)

Categories

Find more on Multidimensional Arrays in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!