Vectors.print(name, c, fileName);
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.
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
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;