Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.



block average with nonintegers
Posted:
Mar 15, 2013 5:50 PM


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



