How can I write code for zero mean and scaling for a matrix of m*n dimension?
2 views (last 30 days)
Show older comments
I am having matrix of dimension m*n and want to compute zero mean of that matrix and then scaled to it for providing a error value ?
0 Comments
Accepted Answer
Walter Roberson
on 9 Mar 2013
newmatrix = yourmatrix - mean2(yourmatrix);
newmatrix = newmatrix ./ max(abs(newmatrix(:)));
4 Comments
More Answers (0)
See Also
Categories
Find more on Interpolation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!