extracting 1 plot out of multiple plots in a fig

2 ビュー (過去 30 日間)
Rohan
Rohan 2012 年 10 月 12 日
I used freqz(A,B) to generate the amplitude/phase versus frequency plots of a signal.
Now I want to use only the magnitude plot. How can I extract this plot and display just that. Can I display it as a subplot of a series of plots? How?
Thanks

回答 (2 件)

Aurelien Queffurust
Aurelien Queffurust 2012 年 10 月 12 日
Using the debug mode , I find that freqz is calling freqzplot . freqzplot is obsolete and fvtool should be used instead. So to get the same result
b = fir1(80,0.5,kaiser(81,8));
freqz(b,1)
I would replace freqz(b,1) by:
fvtool(b)
  1 件のコメント
Rohan
Rohan 2012 年 10 月 12 日
This is my code:
[B,A]= butter(4,.030); Single_HB_30_4= filter(B,A,Single_HB); freqz(B,A)
This gives me 2 plots in one figure. I only want to extract the magnitude plot[1,2,1]. Hod do I do it?

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


Azzi Abdelmalek
Azzi Abdelmalek 2012 年 10 月 12 日
select one plot with figure editor then
x=get(gco,'Xdata')
y=get(gco,'Ydata')
plot(x,y)

カテゴリ

Help Center および File ExchangeColor and Styling についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by