How do I insert a variable value in legend of a plot?
Afficher commentaires plus anciens
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'.
Réponse acceptée
Plus de réponses (1)
DGM
le 6 Sep 2021
0 votes
There are a bunch of examples around. The sidebar shows some. Here are some others:
1 commentaire
Arjun Siddharth
le 6 Sep 2021
Catégories
En savoir plus sur Legend dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!