MATLAB: Normalize a row vector normalize vector i have a vector of size A = 1*128…. i wanted to normalize the vector to B, such that when i sum the new matrix B, i get its sum of all column values as 1…. is there any method to do it?… please do reply…. Best Answer B = A./sum(A); Related SolutionsMATLAB: Normalizing data Dear John,Lets say you have matrix D and you want to normalize each value of Column to unit length (between 0-1). One possible way is :D = bsxfun(@rdivide,D,sum(D));each column will be unit normalized. If you take the sum of each column it will be one.sum(D)Do let me know if I understand you correct. MATLAB: How to get sum of columns even if the matrix is a row vector sum(theMatrix,1) Related QuestionNormalized CorrelationRow vector divide by row vectorNormalizing columns of a matrixImnoise normalization
Best Answer