MATLAB: How to code to normalize a matrix by dividing each index by the max abs value in the row normal A = input('Enter matrix for normalization:'); [x,y] = size(A); z=abs(C); m=0; n=0; for i=1:x end disp(n) Best Answer A=[2 7;8 10]out=A/max(abs(A(:))) Related SolutionsMATLAB: Trim Matrix and find the min-max value the reshaped matrix a=A(:,1:2:end)| b=A(:,2:2:end) [ii1,jj1]=min(a) [ii2,jj2]=max(a) [xx1,yy1]=min(b) [xx2,yy2]=max(b) MATLAB: X.abs() That is true, but it doesn't imply that x you declared will have abs as its method.I think that claim you quoted means that MATLAB's data types are internally implemented as object-oriented classes. The double data type doesn't provide any method.class(x) returns doublemethodsview(x) causes an error. Related QuestionHow to do normalization of a matrixAbs and sign simplificationMinimum of a 3D matrix
Best Answer