フィルターのクリア

how to compare multiple plots of filter by different colors in a same window?

1 回表示 (過去 30 日間)
Filter design
Filter design 2013 年 9 月 3 日
i just have designed few different filters using FDA tool and i want to see them together in a single window by different colors. How it can be done? and how we can generate the transfer function of a filter directly from a FDA tool?

回答 (1 件)

Iain
Iain 2013 年 9 月 3 日
Generic answer:
t = 0:timestep:time_end; % supply your own "time" values
x1 = sin(t); % output of filter 1
x2 = cos(4*pi*t); % output of filter 2
Then:
plot(t,x1,t,x2)
OR
plot(t,x1,'r') % red
hold on
plot(t,x1,'m') % magenta
OR
plot(t,x1) % default (blue)
hold all
plot(t,x2) % default 2nd colour (red)

カテゴリ

Help Center および File ExchangeDigital Filter Analysis についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by