From: Young Ryu on 4 Dec 2009 13:44 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 4 Dec 2009 14:06 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);
|
Pages: 1 Prev: Optimization of Location Allocation Next: drawnow slow in animation |