logical operation on matrix
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Faisal Al-Wazir
am 8 Mär. 2022
Bearbeitet: Arif Hoq
am 8 Mär. 2022
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
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Multidimensional Arrays finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!