The colum is the 12 that i want to normalize, i can't find a way to do a code that normalize one or specific columns without changing the others
I want to normalize just one column, how do i do that ?
조회 수: 2 (최근 30일)
이전 댓글 표시
채택된 답변
Steven Lord
2021년 5월 20일
format shortg % Changing the display format to make the normalized matrix look nicer
M = magic(6)
M(:, 4) = normalize(M(:, 4)) % Normalized with 'zscore'
M([1 3], :) = normalize(M([1 3], :), 2, 'center') % normalize so rows 1 and 3 have mean 0
[mean(M(1, :)), mean(M(3, :))] % check -- should be close to 0
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Hypothesis Tests에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!