Want to know how to modify the pole zero plot

조회 수: 7 (최근 30일)
Krishnapriya
Krishnapriya 2023년 2월 1일
댓글: Krishnapriya 2023년 2월 1일
I was trying plot the pole zero plot of a transfer function.And used the code
H=pzplot(t1) for the same and got the output like this
But I wanted an answer like this
What should I do?
These are the Filter coefficients
b = [1,0.618,1] %numerator coefficients
a = [1,0,0] % denominator coefficients
b = b/sum(b) % normalization
figure
t1 = tf(b,a,(1/fs))
Thank You
  댓글 수: 2
Dyuman Joshi
Dyuman Joshi 2023년 2월 1일
You want to add the text, 'Zeros' and 'Poles' at the respective points? or change something else?
Krishnapriya
Krishnapriya 2023년 2월 1일
Sir
I want to add the text at the respective points

댓글을 달려면 로그인하십시오.

채택된 답변

Sarvesh Kale
Sarvesh Kale 2023년 2월 1일
I understand that you are trying to modify the plot, you can do this using the following steps.
1.) In the figure window under view select property editor
2.) After the property editor pops up, select the gray area in the figure, the property editor will show you options that you can modify of background, select the Figure color you want from the dropdown menu of Figure Color property
3.) Now comes the text part, since you want to insert text into the figure, from the menu of figure go to insert -> textbox, and then enter the names zeros and poles in two seperate textboxes and drag and paste them in the figure where you want them, you can get rid of the boundary of textboxes by selecting the textbox and setting its LineStyle to none, similarly you can modify the text color from the properties visible under property editor
4.) select the zeros on the plot if you want to modify its color and change its color from property editor
Then close the property editor from the top right corner of property editor dropdown menu and you have the graph that you need.
If you want to modify the properties by code/command line then refer the following documentation where modifying the graphics objects is shown along with example https://in.mathworks.com/help/matlab/creating_plots/graphics-objects-overview.html
Hope this answers you query, please accept the answer if it does.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Filter Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by