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

1 次查看(过去 30 天)
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
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