From 4661bdf94146621bc7a0eb3b0c1ea9901dcd8c61 Mon Sep 17 00:00:00 2001 From: tobolar Date: Wed, 31 Jul 2024 12:19:40 +0200 Subject: [PATCH] Enable plotting of tf2 --- .../Examples/TransferFunction/plotPolesAndZeros.mo | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Modelica_LinearSystems2/Examples/TransferFunction/plotPolesAndZeros.mo b/Modelica_LinearSystems2/Examples/TransferFunction/plotPolesAndZeros.mo index df9c32b3..cf626ba5 100644 --- a/Modelica_LinearSystems2/Examples/TransferFunction/plotPolesAndZeros.mo +++ b/Modelica_LinearSystems2/Examples/TransferFunction/plotPolesAndZeros.mo @@ -1,6 +1,5 @@ within Modelica_LinearSystems2.Examples.TransferFunction; -function plotPolesAndZeros - "Example for plotting poles and zeros of two transfer functions" +function plotPolesAndZeros "Plot poles and zeros of two transfer functions" extends Modelica.Icons.Function; import Modelica.ComplexMath.j; @@ -17,12 +16,12 @@ algorithm defaultDiagram=Modelica_LinearSystems2.Internal.DefaultDiagramPolesAndZeros( heading="Poles and zeros of " + String(tf1))); -/* TransferFunction.Plot.polesAndZeros( tf=tf2, defaultDiagram=Modelica_LinearSystems2.Internal.DefaultDiagramPolesAndZeros( heading="Poles and zeros of " + String(tf2)), - device=Modelica_LinearSystems2.Utilities.Plot.Records.Device(xTopLeft=50, yTopLeft=30)); -*/ + device=Modelica_LinearSystems2.Utilities.Plot.Records.Device( + xTopLeft=50, + yTopLeft=30)); annotation(__Dymola_interactive=true); end plotPolesAndZeros;