pBook‎ > ‎Matlab‎ > ‎

Text Label

posted Aug 29, 2014, 3:39 AM by Javad Taghia   [ updated Aug 29, 2014, 3:39 AM ]
for i=1:1:length(y)
    plot (y(i,1),y(i,2), '*r')
    hold on
    grid on
    axis equal
  
    plot (y(i,4),y(i,5), '*b')
end
  strValues = strtrim(cellstr(num2str([y(:,1) y(:,2)],'(%d,%d)')));
  text(y(:,1),y(:,2),strValues,'VerticalAlignment','bottom');
Comments