help multiple legends?
Afficher commentaires plus anciens
[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 commentaires
Azzi Abdelmalek
le 30 Avr 2016
What case?
Walter Roberson
le 30 Avr 2016
You legend once for every iteration of your for loops. You need 42 legend entries.
Walter Roberson
le 30 Avr 2016
Are your x2 vectors or 2 dimensional arrays?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Graphics Performance dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!