i try do delete rows and columns that are zeros but it cut also part of shape .I use this code
u=I;
%%
old=[];
new=all(~u);
while ~isequal(old,new)
u(new,:)=0;
old=new;
new=all(~u);
end u(new,:)=[]; u(:,new)=[];
av=u;
av(~any(u,2),:)=[];
%radious of puple
figure, imshow(av,[]); so any other way to do that
u = I; zc = ~any(u); u(:,zc) = []; zr = ~any(u,2); u(zr,:) = [];
u = I; zc = ~any(u); zr = ~any(u,2); u(zc,zr) = [];
imshow(u, []);
0 Comments