.Modelica_LinearSystems2.ComplexMathAdds.Vectors.print

Information

Syntax

Vectors.print(name, c, fileName);

Description

Convert a complex vector into a string representation and save it line by line in a file. If fileName stays empty, the string will be printed to the log window.

Example

c1 = {Complex(1,3), Complex(2,7), Complex(-3,1)};

Vectors.print("c_vec",c1)
// c_vec =
//    1 + 3*j
//    2 + 7*j
//    -3 + 1*j

Interface

function print
  extends Modelica.Icons.Function;
  import Modelica.Utilities.Streams.print;
  input String name = "" "Name of complex vector";
  input Complex c[:] "Complex vector to be printed";
  input String fileName = "" "Print to fileName; empty fileName prints to the log window";
end print;

Generated at 2024-11-26T19:26:15Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos