How can I change the value of Y in the columns whare the value of X is zero in matrix ?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Siwakorn Phakdee
am 4 Nov. 2021
Kommentiert: Siwakorn Phakdee
am 4 Nov. 2021
I have the large column of matrix XY for example
X Y
1 5
0 10
3 26
0 5
if I want to change the value of Y in the columns whare the value of X is zero like this
X Y
1 5
0 1.5
3 26
0 1.5
Which the command I need to use ?
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!