Quantcast
Channel: MATLAB Central Newsreader Recent Posts
Viewing all articles
Browse latest Browse all 19628

block average with non-integers

$
0
0
I have an issue.

I have an array with 165 rows and 332 columns. I want to degrade it (i.e. take the average of blocks of the array or make the resolution more course). This is so I apply an array with 41 rows and 71 columns on it. You might say the latter array could be upgraded but that procedure would infuse false data into it.

Lets take array A(165,332) and apply BlockMean
When I use testing = BlockMean(A, 4,4), the resultant matrix has a size of 41 and 83 but not the 41 and 71 that I need.

332/71 = 4.67 , but obviously when I tried BlockMean(A,4,4.67) I obtain an error because non - integers cannot be used.

Also 71 x 4 = 284. This would put me short of 332. How can I take the average of array A that can be averaged for an array with 41 rows and 71 columns?

Thanks

Jonathan

Viewing all articles
Browse latest Browse all 19628

Trending Articles