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!