How do I add a text string after my contour labels?

25 ビュー (過去 30 日間)
Byrd
Byrd 2020 年 11 月 19 日
回答済み: Nora Khaled 2020 年 11 月 20 日
I'm new to using MATLAB and trying to add units to my contour labels, I've tried searching and I'm just ending up more confused.
My current code looks like this:
figure(1)
[C,H] = contour(PP,HH,Mfr*1000,mfrplot);
clabel(C,H,'manual');
grid on
hold on
[C,H] = contour(PP,HH,Pwr/1000,pwrplot);
clabel(C,H,'manual');
There are two different contours on the one plot, and I have the labels manually placed at the moment, due to overlapping text. How would I go about adding 'kg/s' and 'kW' units to the first and second contour labels?
I think I need to use t = clabel or tl = clabel but I'm not sure how that would look.
Thanks!

回答 (1 件)

Nora Khaled
Nora Khaled 2020 年 11 月 20 日
If I understood your problem correctly... I think the answer in this question will help you
they annotate their graph with numbers but you can use 'kg/s' and 'kW' units as well.

カテゴリ

Help Center および File ExchangeContour Plots についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by