필터 지우기
필터 지우기

Edit legend description and make a dot in on of the character

조회 수: 1 (최근 30일)
MOBIN MIR MONIRUZZAMAN
MOBIN MIR MONIRUZZAMAN 2022년 4월 26일
댓글: Chunru 2022년 4월 27일
I want to change legend description for curve 3 and 4. Rather than V_x and V_y, I want to use u' (u dot) and v'(v dot). How can I edit the legend of the figure? I already have this figure.

답변 (1개)

Chunru
Chunru 2022년 4월 26일
편집: Chunru 2022년 4월 26일
Try to modify the following:
% generate some data
data = (1:10)' + randi([3 20], [1 4]);
plot(data)
legend(["1 $s=u$" "2 $s=v$" "3 $s=\dot{u}$" "4 $s=\dot{v}$"], "Interpreter", "latex")
  댓글 수: 2
MOBIN MIR MONIRUZZAMAN
MOBIN MIR MONIRUZZAMAN 2022년 4월 26일
I know this way of work. But here I have lots of figures that are already generated, I do not want to generate these figures again, just I want to change these 2 description in the legand( manually). Otherwise, it will take too much time. Is it possible to change in the legend only?
Thanks for the reply.
Chunru
Chunru 2022년 4월 27일
Suppose that you have save the figures in .fig format. You can then open the figure, and run the legend command for the selected figure.

댓글을 달려면 로그인하십시오.

카테고리

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

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by