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!