How to normalize value in matrix to 0 and 1?

1 visualización (últimos 30 días)
noramalina mohd hatta
noramalina mohd hatta el 17 de Mzo. de 2016
Comentada: noramalina mohd hatta el 18 de Mzo. de 2016
I have this gene expression data
does it correct to use this ?
normA = data - min(data(:)) normA = normA ./ max(normA(:))

Respuesta aceptada

Image Analyst
Image Analyst el 17 de Mzo. de 2016
That will work.
If you have the Image Processing Toolbox, you can use mat2gray()
normA = mat2gray(data);

Más respuestas (0)

Categorías

Más información sobre Sparse Matrices 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!

Translated by