MATLAB Answers

STPG
0

legend add title or more information

Asked by STPG
on 17 Apr 2019
Latest activity Answered by Geoff Hayes
on 17 Apr 2019
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 Comments

Sign in to comment.

Tags

1 Answer

Answer by Geoff Hayes
on 17 Apr 2019

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 Comments

Sign in to comment.