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 ?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Respuesta aceptada
Steven Lord
el 20 de Mayo de 2021
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 comentarios
Ver también
Categorías
Más información sobre Hypothesis Tests en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!