How to normalize value in matrix to 0 and 1?

1 vue (au cours des 30 derniers jours)
noramalina mohd hatta
noramalina mohd hatta le 17 Mar 2016
I have this gene expression data
does it correct to use this ?
normA = data - min(data(:)) normA = normA ./ max(normA(:))

Réponse acceptée

Image Analyst
Image Analyst le 17 Mar 2016
That will work.
If you have the Image Processing Toolbox, you can use mat2gray()
normA = mat2gray(data);
  1 commentaire
noramalina mohd hatta
noramalina mohd hatta le 18 Mar 2016
Thank you! It really helps me!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Sparse Matrices dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by