Revision 495
(checked in by cbc, 12 years ago)
|
Initial import of Stark code.
|
Line | |
---|
1 |
function H = findfig(figname) |
---|
2 |
%FINDFIG Get figure handle from name |
---|
3 |
% H = FINDFIG(FIGNAME) |
---|
4 |
% Returns the handle of the foremost figure |
---|
5 |
% with name FIGNAME, or 0 if not found |
---|
6 |
% |
---|
7 |
% Calls: none |
---|
8 |
% |
---|
9 |
% Keith Rogers 9/26/94 |
---|
10 |
|
---|
11 |
% Copyright (c) 1995 by Keith Rogers |
---|
12 |
|
---|
13 |
allfigs = get(0,'children'); |
---|
14 |
H = 0; |
---|
15 |
for thisfig = (allfigs') |
---|
16 |
if strcmp(get(thisfig,'name'),figname) |
---|
17 |
H = thisfig; |
---|
18 |
break |
---|
19 |
end |
---|
20 |
end |
---|