How can I write code for zero mean and scaling for a matrix of m*n dimension?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
Walter Roberson
le 9 Mar 2013
newmatrix = yourmatrix - mean2(yourmatrix);
newmatrix = newmatrix ./ max(abs(newmatrix(:)));
4 commentaires
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!