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: matrix reduction
Replies: 2   Last Post: Apr 5, 2013 2:30 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Bruce Bowler

Posts: 303
Registered: 12/7/04
Re: matrix reduction
Posted: Apr 4, 2013 10:35 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On Thu, 04 Apr 2013 12:57:12 +0000, Bruce Bowler wrote:

> I have a large array, 2048x2560, that I'd like to reduce in size to
> 512x640. The reduction should be such that the 1,1 element in the
> reduced array is the mean of the 1:4,1:4 elements of the larger array,
> the 1,2 element is the mean of 1:4,5:8, etc...
> I know I can do it with a crafty combination of kron and a loop, but
> that just feels wrong. I'm sure there's a better (faster) way, but I
> can't come up with anything.
> Any help out there?
> Thanks!
> Bruce

Never mind... 2 loops are WAY faster than I was expecting...


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.