Calculate mean value of every element of a .mat file
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Jon Ordóñez Devesa
le 20 Mai 2022
Commenté : Jon Ordóñez Devesa
le 23 Mai 2022
I have a .mat file which contains 300 matrixes all of which have the same dimensions of 256x320. I want to calculate the mean value of each matrix, with a for circle maybe, thus obtaining 300 vectors. Then I want to put all those vectors in a single matrix. Thanks in advance.
2 commentaires
Réponse acceptée
Plus de réponses (1)
Ilya Dikariev
le 20 Mai 2022
singleMatrix=zeros(size(oldMatrix));
for i=1:length(singleMatrix)
singlematrix=mean(oldMatrix);
end
that should work if you want your end matrix in a single row
Voir également
Catégories
En savoir plus sur Logical dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!