Problem when running the 'legend' command under Matlab 2009b

1 visualizzazione (ultimi 30 giorni)
Hi, I am running Matlab 2009b. Since a couple of weeks the legend command does not work anymore, i.e. I do not get any error. However, after having inserted the command legend, the plotted line disappears. For example: x=linspace(-5,5,50); y = sin(x); plot(x,y) works, but after having executed legend('a') the plotted line disappears. Moreover, I cannot plot anything else on the figure until I make a clf or close the figure.

Risposte (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by