Skip to content

Commit

Permalink
Cleaned up absorptionImageObject implementation
Browse files Browse the repository at this point in the history
bec5 committed Aug 21, 2013

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 9f002db commit 45c9319
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions @AbsorptionImageObject/objExists.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
function tf = objExists(filename)
currentObjects = AbsorptionImageObject.findall();
objIndex=0;
tf = false;
while ~tf && objIndex<length(currentObjects)
objIndex=objIndex+1;
if currentObjects{objIndex}.filename == filename
tf = true;
end
end
end

0 comments on commit 45c9319

Please sign in to comment.