Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


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

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: 232
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...

Bruce



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

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.