MATLAB: How to reverse the normalization function normc/normr
normnormalization
I have used the function of "normr/normr" to normalize a matrix, but how can I reverse the normalization? Thank you very much!
Best Answer
If you haven't discarded the original data, there is nothing to restore. The "restored" matrix is the original one that you already have. If you plan to throw that data away, the best thing would be to save the row-wise (or column-wise) norms and use them when needed to undo normalization, e.g.,
Most of the time functions don't operate "externally", so SORTROWS doesn't alter your arrayP defined in the workspace. It creates a new sorted array that it outputs. You have to store this output back intoP if you wantP to be the sorted version. If you wanted to keep the original, you could store it into a new variable:
Best Answer