Plot - add legend individually
이전 댓글 표시
How can I update the legend of each plot individually rather than at the end of the code ?
plot(x1, y1, '-vr', 'LineWidth', linewidth, 'MarkerSize', markersize);
legend('Algorithm 1');
plot(x2, y2, '-vr', 'LineWidth', linewidth, 'MarkerSize', markersize);
legend('Algorithm 2');
The code above overwrites the legend for Algorithm 1
댓글 수: 1
ROBIN KUMAR
2022년 2월 18일
The same problem I have been facing with R2021a version. Please help me execute the same..
채택된 답변
추가 답변 (1개)
ROBIN KUMAR
2022년 2월 18일
0 개 추천
The same problem I have been facing with R2021a version. Please help me execute the same..
카테고리
도움말 센터 및 File Exchange에서 Legend에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!