I want to plot a bode in an existing axes but it appears in a new figure

1 view (last 30 days)
I want to plot a bode in an existing axes but it appears in a new figure

Answers (1)

Mark Sherstan
Mark Sherstan on 13 Dec 2018
Without knowing your code I am taking a shot in the dark but did you use the hold on and hold off functions? Example is below.
H = tf([1 0.1 7.5],[1 0.12 9 0 0]);
G = tf([1 0.1],[1 9 0 0]);
figure(1)
hold on
bode(H)
bode(G)
hold off

Tags

Community Treasure Hunt

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

Start Hunting!