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.![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/978485/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/978485/image.png)
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!