legend add title or more information
조회 수: 1 (최근 30일)
이전 댓글 표시
I have a loop running with different values and hence my plot and legend commands look like below:
plot(be, mx);
xlabel('\beta')
ylabel(' Vol')
lgnd = sprintfc('Q_o = %.2E', Qo);
legend(lgnd, 'Location','NW')
If I want to add a title - or add few words (for eg - 'conventional') how do I do that?
댓글 수: 0
답변 (1개)
Geoff Hayes
2019년 4월 17일
STPG - see title for details on how to add a title to your axes. If your loop is updating one axes, then I suggest putting this call (and those for the axes label and legend) outside of the loop since you don't need to do this on each iteration of the loop...
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!