Add patch to the background of a bodeplot
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Martin Steinisch
am 24 Mai 2017
Beantwortet: Star Strider
am 24 Mai 2017
I've a little function in which I create a bodeplot, like this one:
function RequirementTest01
% create a bode plot
H = tf([1 0.1 7.5],[1 0.12 9 0 0]);
%bode(H,{0.1,10});
bodeHandle = bodeplot(H,{0.1,10});
get(bodeHandle)
end
Now I have the coordinates of a polygon, and I want to create a patch that should be inserted in the background of the plot. Something like the following figure:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/164398/image.png)
How can I insert the patch in the plot?
0 Kommentare
Akzeptierte Antwort
Star Strider
am 24 Mai 2017
Unlike the Signal Processing Toolbox freqz and freqs commands that produce ordinary subplot figures, bode and bodeplot do not offer any significant ability to change the plot (other than some of the options in bodeplot.
You have to get the magnitude and phase outputs from bode, then plot them yourself as subplots in order to insert your patch object.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Plot Customization finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!