All Questions
4
questions
2
votes
1
answer
71
views
MATLAB R2019a won't show legend of primitive lines
I have recently changed to a newet version of Matlab (R2019) and when I try to add a legend on my graph I get the following error:
'' Inputs must be the same size or either one can be a scalar.''
The ...
11
votes
1
answer
20k
views
How to have a common legend for subplots?
I am trying to create a figure of subplots. I don't want the subplots to have legends but instead the figure to have an overall legend.
I read that it is possible either by adding a legend only to ...
2
votes
2
answers
10k
views
how to change the sequence of the legend
I want to change the sequence of the legend.
See the figure. I want the sequence to be: green and data2, blue and data3, black and data4, red and data1.
Could anyone give a demo?
8
votes
3
answers
13k
views
Dynamic Legend (Updates in every recursion)
I got a for i=1:15. Inside I generate a variable d=1:0.01:10, which is the x'x axis and based on this, I create a continuous function F(d) which has 2 unique variables pitch and yaw. I then plot this ...