Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 968d0297 authored by DIB Elian's avatar DIB Elian
Browse files

Fixed use of "any" function

parent 68b7f8c9
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,12 @@ end
numdims = ndims(Mask);
gv = cell(1,numdims);
for dim = 1:numdims
M = any(Mask,setdiff(1:numdims,dim));
M = Mask;
for dim_ = setdiff(1:numdims,dim)
M = any(M,dim_);
end
gv{dim} = find(M,1,'first'):find(M,1,'last');
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment