substract row of an array by a vector
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Cedrick De Block
il 13 Lug 2021
Commentato: Stephen23
il 13 Lug 2021
Hi,
I have an array of 63X2 and I want to substract the values of the 18, 36 and 54 of the first colum with 2 and then to addition the values of the 18, 36 and of the second colum with 2.
can someone help me with this please!!
Thank you in advance!!
0 Commenti
Risposta accettata
Stephen23
il 13 Lug 2021
Where A is your array:
X = [18,36,54];
A(X,1) = A(X,1) - 2;
A(X,2) = A(X,2) + 2;
2 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Cell Arrays in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!