how to replace values in matrix across entire row
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Kumaresan Karunanidhy
am 4 Sep. 2022
Kommentiert: Kumaresan Karunanidhy
am 4 Sep. 2022
I want to replace current values in a particular row of matrix with different values for each index in that particular row
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 4 Sep. 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)
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Matrix Indexing 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!