How do I code to normalize a matrix by dividing each index by the max abs value in the row
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposta accettata
Azzi Abdelmalek
il 11 Set 2013
Modificato: Azzi Abdelmalek
il 11 Set 2013
A=[2 7;8 10]
out=A/max(abs(A(:)))
2 Commenti
Jan
il 12 Set 2013
But this does not solve the question: "dividing each index by the max abs value in the row".
Più risposte (1)
Vedere anche
Categorie
Scopri di più su Logical 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!