Graphics Incompatibilities in Control System Toolbox between R2024a and R2024b
A1 = 1; wp1 = 10;
A2 = -2; wp2 = 20;
s = tf(‘s’);
H1 = A1 / (1 + s/wp1); H2 = A2 / (1 + s/wp2);
H = H1 + H2;
figure;
bp = bodeplot(H, H1, H2);
hLines = findobj(gcf, Type=’line’);
set(hLines, LineWidth=2); % not working in R2024b?
set(hLines(6), LineWidth=6, DisplayName=’H2′); % not working in R2024b?
set(hLines(3), LineWidth=6, DisplayName=’H2′); % not working in R2024b?
set(findall(gcf, ‘Type’, ‘axes’), LineWidth=1.5, Box="off", fontsize=12); % not working in R2024b?
% Any correct/equivalent/recommended practice in R2024b?
figure;
pzmap(H, H1, H2);
set(gca, YTick=[], Box="off", LineWidth=1.5, XAxisLocation=’origin’, YAxisLocation=’origin’);
% get an R2024b Error using controllib.chart.PZPlot/set Unrecognized property YTick for class PZPlot.
% Any correct/equivalent/recommended practice in R2024b?
R2024a:
R2024b:
The "Version History" of "BodePlot" and "PZPlot" does point out changes in "gca", but for the "Chart Object" mentioned in it, I Googled it and couldn’t find the relevant documentation, so I don’t know how to get axes from Chart Object. Since the R2024b version is too new, I don’t know where to find the information.A1 = 1; wp1 = 10;
A2 = -2; wp2 = 20;
s = tf(‘s’);
H1 = A1 / (1 + s/wp1); H2 = A2 / (1 + s/wp2);
H = H1 + H2;
figure;
bp = bodeplot(H, H1, H2);
hLines = findobj(gcf, Type=’line’);
set(hLines, LineWidth=2); % not working in R2024b?
set(hLines(6), LineWidth=6, DisplayName=’H2′); % not working in R2024b?
set(hLines(3), LineWidth=6, DisplayName=’H2′); % not working in R2024b?
set(findall(gcf, ‘Type’, ‘axes’), LineWidth=1.5, Box="off", fontsize=12); % not working in R2024b?
% Any correct/equivalent/recommended practice in R2024b?
figure;
pzmap(H, H1, H2);
set(gca, YTick=[], Box="off", LineWidth=1.5, XAxisLocation=’origin’, YAxisLocation=’origin’);
% get an R2024b Error using controllib.chart.PZPlot/set Unrecognized property YTick for class PZPlot.
% Any correct/equivalent/recommended practice in R2024b?
R2024a:
R2024b:
The "Version History" of "BodePlot" and "PZPlot" does point out changes in "gca", but for the "Chart Object" mentioned in it, I Googled it and couldn’t find the relevant documentation, so I don’t know how to get axes from Chart Object. Since the R2024b version is too new, I don’t know where to find the information. A1 = 1; wp1 = 10;
A2 = -2; wp2 = 20;
s = tf(‘s’);
H1 = A1 / (1 + s/wp1); H2 = A2 / (1 + s/wp2);
H = H1 + H2;
figure;
bp = bodeplot(H, H1, H2);
hLines = findobj(gcf, Type=’line’);
set(hLines, LineWidth=2); % not working in R2024b?
set(hLines(6), LineWidth=6, DisplayName=’H2′); % not working in R2024b?
set(hLines(3), LineWidth=6, DisplayName=’H2′); % not working in R2024b?
set(findall(gcf, ‘Type’, ‘axes’), LineWidth=1.5, Box="off", fontsize=12); % not working in R2024b?
% Any correct/equivalent/recommended practice in R2024b?
figure;
pzmap(H, H1, H2);
set(gca, YTick=[], Box="off", LineWidth=1.5, XAxisLocation=’origin’, YAxisLocation=’origin’);
% get an R2024b Error using controllib.chart.PZPlot/set Unrecognized property YTick for class PZPlot.
% Any correct/equivalent/recommended practice in R2024b?
R2024a:
R2024b:
The "Version History" of "BodePlot" and "PZPlot" does point out changes in "gca", but for the "Chart Object" mentioned in it, I Googled it and couldn’t find the relevant documentation, so I don’t know how to get axes from Chart Object. Since the R2024b version is too new, I don’t know where to find the information. graphics, figure, axis, handles MATLAB Answers — New Questions