What does normc function do?
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Insos
el 10 de Dic. de 2014
Comentada: Star Strider
el 11 de Dic. de 2014
Hi
Can someone tell me what does normc function do? Well ... it normalizes data in each column but to what range ([0,1]?) ? I read the description but I can't fully understand.
Thanks.
0 comentarios
Respuesta aceptada
Star Strider
el 10 de Dic. de 2014
It normalises the sum of the squares of the elements in each column to have a value of 1.
To illustrate:
M = randi(20,5,5); % Create Random Matrix
Mnc = normc(M); % Call ‘normc’
Ssq = sum(Mnc.^2); % Column Sum-Of-Squares
4 comentarios
Star Strider
el 11 de Dic. de 2014
There is, because normc retains the relative magnitudes of the data in each column with respect to the length of the vector they describe. Normalising between min and max destroys those relationships.
How you normalise them depends on what you want to do with your data, but if your data span a vector space and you want to preserve the relationships between the vector components, normc (or normr) are your only options.
Más respuestas (0)
Ver también
Categorías
Más información sobre Loops and Conditional Statements 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!