MATLAB: How to normalize value in matrix to 0 and 1

gene expressionmatrix array

I have this gene expression data
does it correct to use this ?
normA = data – min(data(:)) normA = normA ./ max(normA(:))

Best Answer

That will work.
If you have the Image Processing Toolbox, you can use mat2gray()
normA = mat2gray(data);