How do I code to normalize a matrix by dividing each index by the max abs value in the row
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
A = input('Enter matrix for normalization:'); [x,y] = size(A);
z=abs(C); m=0; n=0;
for i=1:x
end
disp(n)
0 Kommentare
Akzeptierte Antwort
Azzi Abdelmalek
am 11 Sep. 2013
Bearbeitet: Azzi Abdelmalek
am 11 Sep. 2013
A=[2 7;8 10]
out=A/max(abs(A(:)))
2 Kommentare
Jan
am 12 Sep. 2013
But this does not solve the question: "dividing each index by the max abs value in the row".
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Logical 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!