フィルターのクリア

How to hide the units label on an axis

9 ビュー (過去 30 日間)
ata
ata 2013 年 5 月 20 日
Hello,
I'm trying to hide the units label on an axis-name.
By units label, I mean the "(deg)" on this picture. I need a plot in a different language than English, so the units have a different name.
Ata

採用された回答

Sean de Wolski
Sean de Wolski 2013 年 5 月 20 日
編集済み: Sean de Wolski 2013 年 5 月 20 日
How are you generating the figure?
Would the following take care of it?
ylabel('Phase')
More per clarification. There is probably an option for bodeplot to turn this off but here is a workaround that just removes it:
hFig = figure;
sys = rss(5);
h = bodeplot(sys);
labels = findall(hFig,'Type','Text');
label = labels(strncmp(get(labels,'String'),'Phase',5));
set(label,'String',regexprep(get(label,'String'),'(\(\w*))',''));
  3 件のコメント
Sean de Wolski
Sean de Wolski 2013 年 5 月 20 日
see More
ata
ata 2013 年 5 月 20 日
This way, it works fine. Thank you!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAxis Labels についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by