Re: How can I remove the padding??



Lara wrote:
Hello,

After I apply (padarray) function How can I remove the padding??


a = ones(5);
s = [3,4];
aa = padarray(a,s,0,'both');
b = aa(1+s(1):end-s(1),1+s(2):end-s(2));

isequal(a,b);


michael
.



Relevant Pages

  • Re: UDT bug
    ... "Jim Mack" wrote in message ... > If padding concerns you, a good general rule is to place elements in ... Michael ...
    (microsoft.public.vb.syntax)
  • Re: UDT bug
    ... "Jim Mack" wrote in message ... > If padding concerns you, a good general rule is to place elements in ... Michael ...
    (microsoft.public.vb.general.discussion)