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.
0 个评论
回答(1 个)
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 个评论
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 Center 和 File Exchange 中查找有关 Legend 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!