From: Young Ryu on
Hi

I have an array:
A=rand(1200, 1200);

I'd like to resize this array by half size. I found the resizem function and it works:

B=resizem(A, 0.5);

However, I felt this function is quite slow. I guess that there might be a faster function to do this. Could you help me?

Thanks!
From: Frank on
On Dec 4, 12:44 pm, "Young Ryu" <ryuy...(a)gmail.com> wrote:
> Hi
>
> I have an array:
> A=rand(1200, 1200);
>
> I'd like to resize this array by half size. I found the resizem function and it works:
>
> B=resizem(A, 0.5);
>
> However, I felt this function is quite slow. I guess that there might be a faster function to do this. Could you help me?
>
> Thanks!

If you want ever other value, for example, you can use:

A=rand(1200,1200);
B=A(1:2:end,1:2:end);