필터 지우기
필터 지우기

Wrong symbols in the legend

조회 수: 17 (최근 30일)
Benedict Baumann
Benedict Baumann 2018년 12월 17일
답변: Benedict Baumann 2018년 12월 17일
Hi, when i run my Matlab skript, my plots are all correct, but the legend only contains the same symbols. Does anybody have an idea, what might be the problem?
I use a while loop, getting the value of the red and blue circles.
Greets, BenePlot.png

답변 (2개)

madhan ravi
madhan ravi 2018년 12월 17일

Benedict Baumann
Benedict Baumann 2018년 12월 17일
Thanks for your answer. Unhappily this way didn't work for my problem.
In the end i just had to put the variable of each plot in the squared bracket at the beginning of the legend command.
legend ([plot_1, plot_2,plot_3, plot_4, plot_5,plot_6],'a','b','c','d','f','g','location','southeast');
I would highlight it here, but i cannot find a marker option in this editor. ;)

카테고리

Help CenterFile Exchange에서 Legend에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by