The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: block average with non-integers
Replies: 1   Last Post: Mar 15, 2013 7:39 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Jonathan W Smith

Posts: 90
Registered: 12/17/10
block average with non-integers
Posted: Mar 15, 2013 5:50 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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?



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.