How do I insert a variable value in legend of a plot?
显示 更早的评论
I have a varible p, with a value -2.2. How do I insert this value in the legend function, for a plot?
eg.- legend('Value 1=p'); % I wish to have the numeric value of p (2.2) in place of 'p'.
采纳的回答
更多回答(1 个)
DGM
2021-9-6
0 个投票
There are a bunch of examples around. The sidebar shows some. Here are some others:
类别
在 帮助中心 和 File Exchange 中查找有关 Legend 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!