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); Related SolutionsMATLAB: How to normalize values in a matrix to be between 0 and 1 This can be simply done in a two step processsubtract the minimumdivide by the new maximumnormA = A - min(A(:))normA = normA ./ max(normA(:)) % *note that A(:) makes A into a long list of values. Otherwise min(A) would not return a single value ... Try fro yourself!Edited after comment ... MATLAB: HOW TO FIND normalized value of an array A = imread('cameraman.tif');Anorm = (A - min2(A))/(max2(A) - min2(A)); Related QuestionHow to normalize each row from dataset belowNormalizing dataNormalized data -1 to 1Imnoise normalizationFrobenius norm of the error matrix
Best Answer