Figbytag.m

From Pnb
Revision as of 12:41, 17 March 2011 by Eriks (talk | contribs) (Created page with '<pre> function [h]=figbytag(str) %pass a tag string to look for and function returns handles of all %objects with str in tag h=findall(0); tags=char(get(h,'Tag')); [A,…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

function [h]=figbytag(str)
  %pass a tag string to look for and function returns handles of all
  %objects with str in tag
  h=findall(0);
  tags=char(get(h,'Tag'));
  [A,I]= grep(tags,str);
  h=h(I);

figbytag