plot(xini(1),xini(2),'ko','MarkerSize',10, 'MarkerFaceColor',[0,0,0])
plot(tgt(1),tgt(2),'rd','MarkerSize',10, 'MarkerFaceColor',[1,0,0])
To Log Everything I find useful. If you find anything inappropriate, please contact cuijinqiang@gmail.com
h1 = plot(rand(1,10)); % Blue line
hold on;
h2 = plot(rand(1,10),'r'); % Red line
h3 = plot(rand(1,10),'g'); % Green line
legend([h1 h3],{'hello','world'}); % Only the blue and green lines appear
% in the legend