how to multiply certain numbers in a matrice
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
if have a matrice A=[1,5,4;3,1,5;6,3,1] But I want to multiply only certain numbers for example A=[2,5,4;3,2,5;6,3,2] how do i do this.
0 Kommentare
Antworten (2)
Guillaume
am 8 Feb. 2017
You haven't explain what certain numbers mean. At a guess:
A(A == 1) = A(A == 1) * 2;
0 Kommentare
Siehe auch
Kategorien
Mehr zu Logical 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!