help multiple legends?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
JL555
am 30 Apr. 2016
Bearbeitet: JL555
am 2 Mai 2016
[sol]=aaa(@ptch);
[x1,x2]=ptch(sol)
plot(x1,x2,'r.-');hold on;
xlabel('x1');ylabel('x2')
legend('Modified');
pause('on')
fprintf('Press any key to continue to other algorithm')
pause
[Sol]=bbb(@ptch);
[x1 x2]=ptch(Sol)
plot(x1,x2,'k.-'); hold on;
xlabel('x1');ylabel('x2')
legend('pre modified');
toc
how to display the legend in such a case?
6 Kommentare
Akzeptierte Antwort
Walter Roberson
am 2 Mai 2016
Do not call legend() twice. Call it once and pass in both entries.
1 Kommentar
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Legend finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!