Code covered by the BSD License
function textsc(x,y,txt); % Places text at screen coords on current figure. % Lower Left (0,0) % Upper Right (1,1); % % Usage : textsc(x,y,'text'); % % plot(x,y); % textsc(0.8,0.5,'text'); % N.Tucker www.activefrance.com 2008 ax=axis; xpos=(1.18).*x.*(ax(2)-ax(1))+ax(1); ypos=y.*(ax(4)-ax(3))+ax(3); text(xpos,ypos,txt);
Contact us at files@mathworks.com