Difference between revisions of "Figbytag.m"

From Pnb
Jump to navigation Jump to search
(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,…')
 
(No difference)

Latest revision as of 12:41, 17 March 2011


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