How do you set entries in a matrix for odd rows with odd columns to zero?
1 view (last 30 days)
Show older comments
I want to set A(i,j) = 0 if both i and j are odd. Is this possible to do vectorially?
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Logical 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!