help multiple legends?
이전 댓글 표시
[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
Azzi Abdelmalek
2016년 4월 30일
What case?
Walter Roberson
2016년 4월 30일
You legend once for every iteration of your for loops. You need 42 legend entries.
Walter Roberson
2016년 4월 30일
Are your x2 vectors or 2 dimensional arrays?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Graphics Performance에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!