Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 5th, 2012  |  syntax: None  |  size: 0.22 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Determine/Save the position of text in matlab
  2. text_handles = findobj('parent',gca,'type','text');
  3.        
  4. positions = get(text_handles,'position');
  5.        
  6. h=text(2.9,7.5,'MyText');
  7.        
  8. set(h,'Position',[2.5 7]);
  9.        
  10. get(h);