Modelica_LinearSystems2.StateSpace ss=Modelica_LinearSystems2.StateSpace(
A=[-1.0,0.0,0.0; 0.0,-2.0,0.0; 0.0,0.0,-3.0],
B=[0.0,1.0; 1.0,1.0; -1.0,0.0],
C=[0.0,1.0,1.0],
D=[1.0,0.0])
algorithm
Modelica_LinearSystems2.StateSpace.Plot.plotBodeMIMO(ss)
// gives:
encapsulated function bodeMIMO_old
import Modelica.Utilities.Streams.print;
import Modelica;
import Modelica_LinearSystems2;
import Modelica_LinearSystems2.StateSpace;
import Modelica_LinearSystems2.ZerosAndPoles;
import Modelica_LinearSystems2.Utilities.Plot;
input StateSpace ss "State space system";
input Integer nPoints(min = 2) = 200 "Number of points";
input Boolean autoRange[:, :] = fill(true, size(ss.C, 1), size(ss.B, 2)) "True, if abszissa range is automatically determined";
input Modelica.Units.SI.Frequency f_min[:, :] = fill(0.1, size(ss.C, 1), size(ss.B, 2)) "Minimum frequency value, if autoRange = false";
input Modelica.Units.SI.Frequency f_max[:, :] = fill(10, size(ss.C, 1), size(ss.B, 2)) "Maximum frequency value, if autoRange = false";
input Boolean magnitude = true "= true, to plot magnitude" annotation(
choices(checkBox = true));
input Boolean phase = true "= true, to plot phase" annotation(
choices(checkBox = true));
input Real tol = 1e-10 "Tolerance of reduction procedure, default tol = 1e-10";
extends Modelica_LinearSystems2.Internal.PartialPlotFunction(defaultDiagram = Modelica_LinearSystems2.Internal.DefaultDiagramBodePlot());
input Boolean Hz = true "= true, to plot abszissa in [Hz], otherwise in [rad/s] (= 2*pi*Hz)" annotation(
choices(checkBox = true));
input Boolean dB = false "= true, to plot magnitude in [], otherwise in [dB] (=20*log10(value))" annotation(
choices(checkBox = true),
Dialog(enable = magnitude));
end bodeMIMO_old;