increment values which are larger than three
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Sososasa
am 2 Apr. 2014
Kommentiert: Sososasa
am 2 Apr. 2014
Hi,
If I have this matrix:
A=[ 2 1 3;
4 2 5;
1 1 6]
and I want to increment any value larger than three, so the resulting matrix look like this:
A=[2 1 3;
5 2 6;
1 1 7]
So here I increased 4,5,6 to be 5,6,7
Is there a nice way to use that without loop?
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (2)
Siehe auch
Kategorien
Mehr zu Resizing and Reshaping Matrices 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!