it show me this error Index exceeds matrix dimensions.
Error in ==> quadtree at 29 I(ix(j):ix(j)+(n-1),iy(j):iy(j)+(n-1))=V(j);
dpb <email@example.com> wrote in message <firstname.lastname@example.org>... > On 4/6/2013 2:59 PM, mohammed wrote: > > no help :( ? > > What have you tried??? > > V=[100 200 255 150 50]; > for i=1:5 > n=power(2,i); > [ix,iy]=find(S==n); > for j=ix > I(ix(j):ix(j)+(n-1),iy(j):iy(j)+(n-1))=V(j); > end > end > > conv2() comes to mind but not sure there's any better way overall w/o > thinking about it more than have time for at the moment... > > --