How do I code to normalize a matrix by dividing each index by the max abs value in the row
3 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Azzi Abdelmalek
2013-9-11
编辑:Azzi Abdelmalek
2013-9-11
A=[2 7;8 10]
out=A/max(abs(A(:)))
2 个评论
Jan
2013-9-12
But this does not solve the question: "dividing each index by the max abs value in the row".
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!