How to normalize the values of matrix to make it greater than zero and less than one?
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Sarah A
el 23 de Oct. de 2018
Comentada: Walter Roberson
el 23 de Oct. de 2018
hello,
ho to normalize the values of a matrix to make it greater than zero and less than one?
regards,
2 comentarios
Respuesta aceptada
Matt J
el 23 de Oct. de 2018
Editada: Matt J
el 23 de Oct. de 2018
B=(A-min(A(:)))/(max(A(:))-min(A(:))) ;
4 comentarios
Walter Roberson
el 23 de Oct. de 2018
delta = max(eps(A(:));
B=(A-min(A(:))+delta)/(max(A(:))-min(A(:))+delta) ;
Más respuestas (3)
madhan ravi
el 23 de Oct. de 2018
Editada: madhan ravi
el 23 de Oct. de 2018
Try :
Np = normalize(A,'norm',1) % A your matrix
1 comentario
Ver también
Categorías
Más información sobre Logical 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!