How to replace elements using logical operations?
Ältere Kommentare anzeigen
Let A = [2 13 1; 2 5 16; 11 9 8]
What I want to do is for element that are less than 6, replace the element with 0.
How do I do this using for/if operation ?
Thanks in advance.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Library Development finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!