Want to know how to modify the pole zero plot
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Krishnapriya
le 1 Fév 2023
Commenté : Krishnapriya
le 1 Fév 2023
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 ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1280165/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1280165/image.jpeg)
But I wanted an answer like this
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1280170/image.jpeg)
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 commentaires
Dyuman Joshi
le 1 Fév 2023
You want to add the text, 'Zeros' and 'Poles' at the respective points? or change something else?
Réponse acceptée
Sarvesh Kale
le 1 Fév 2023
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1280210/image.png)
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1280215/image.png)
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1280220/image.png)
4.) select the zeros on the plot if you want to modify its color and change its color from property editor
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1280225/image.png)
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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Filter Analysis dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!