How would I change the output values on the initialplot graph?

조회 수: 7 (최근 30일)
Margarita
Margarita 2025년 6월 27일
편집: dpb 2025년 6월 27일
I used the initialplot command, and can not seem to figure out how to change the 'To: out' values on the side of the plot to the actual output values i have. Thank you in advance!

채택된 답변

dpb
dpb 2025년 6월 27일
편집: dpb 2025년 6월 27일
sys = ss([0, tf([3 0],[1 1 10]) ; tf([1 1],[1 5]), tf(2,[1 6])]);
x0 = [0.3,0.25,1,4];
ip = initialplot(sys,x0);
ip.OutputLabels.String=["Output A";"Output B"]; % change the labels
ip.OutputLabels.Color='r'; % highlight what we modified
title("Initial Condition Plot of MIMO System sys(s)")
grid on
See the <documentation for the initialplot object> for all the details....it appears the "To: " prefix is hardcoded and immutable. It also appears the axis format property is hidden so one can't fix the ugly disparity in precision of the upper axes.
ip.AxesStyle
ans =
AxesStyle with properties: Fonts FontName: "Helvetica" FontWeight: "normal" FontSize: 10 FontAngle: "normal" Box Styling BackgroundColor: [1 1 1] Box: on BoxLineWidth: 0.5000 RulerColor: [0.1294 0.1294 0.1294] Grids GridVisible: on GridColor: [0.1294 0.1294 0.1294] GridLineWidth: 0.5000 GridLineStyle: "-" GridAlpha: 0.1500 MinorGridVisible: off MinorGridColor: [0.1294 0.1294 0.1294] MinorGridLineWidth: 0.5000 MinorGridLineStyle: ":" MinorGridAlpha: 0.1500

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Time and Frequency Domain Analysis에 대해 자세히 알아보기

태그

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by