how to replace values in matrix across entire row
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Kumaresan Karunanidhy
il 4 Set 2022
Commentato: Kumaresan Karunanidhy
il 4 Set 2022
I want to replace current values in a particular row of matrix with different values for each index in that particular row
0 Commenti
Risposta accettata
Walter Roberson
il 4 Set 2022
%example data
A = randi(9, 8, 4)
%example row-based operations
A(3,:) = A(3,:).^2 - 2
A(6, :) = randi([10 19], 1, 4)
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Matrix Indexing 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!