フィルターのクリア

Change style of a bodeplot with many plots

5 ビュー (過去 30 日間)
Martin Steinisch
Martin Steinisch 2017 年 6 月 29 日
コメント済み: Martin Steinisch 2017 年 6 月 29 日
I've the following script in Matlab that generates a plot with many bodeplot functions:
function bodetest()
bodesample = tf([3, -2, 1], [4, -5, 5, 6, 3]);
bodesample2 = tf([1, -1, 1], [4, 7, 5, 6, 3]);
h = bodeplot([bodesample, bodesample; bodesample, bodesample],[bodesample2, bodesample2; bodesample2, bodesample2]);
end
Now I've the handle stored in `h` variable. How can I change the line color and style for every individual plot programmatically by using the handler?
For example I want to change the green phase plot in position (1, 2) from green to red, and the blue magnitude of the plot in position (2, 1) in black.

回答 (1 件)

Arkadiy Turevskiy
Arkadiy Turevskiy 2017 年 6 月 29 日
編集済み: Arkadiy Turevskiy 2017 年 6 月 29 日
Hello Martin, This is not supported at the moment. Have you taken a look at answers to similar questions, this one for example: Bode Plots - Changing Line Styles
HTH
  1 件のコメント
Martin Steinisch
Martin Steinisch 2017 年 6 月 29 日
I understand... thanks for the reply.

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

カテゴリ

Help Center および File ExchangePlot Customization についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by