Average Values in a matrix
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Philip Hoskinson
il 29 Apr 2016
Risposto: Azzi Abdelmalek
il 29 Apr 2016
I have a 100X225 matrix- I want to average [4,4] (or other) chunks of the matrix, and place that value in a new matrix: of a smaller dimension -> 100/4,225/4 etc
I can't seem to get the looping right.
0 Commenti
Risposta accettata
Azzi Abdelmalek
il 29 Apr 2016
a=rand(100,225)
out=blockproc(a,[4 4],@(x) mean(mean(x.data)))
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!