functionwriteRealCSV
Writing real matrix to CSV file
Extends from Modelica.Icons.Function (Icon for functions).
Information
This functions writes an array to a CSV file including header. If the header is not specified explicitly, the header is not written
to the CSV file. Each row of the header string is written to the CSV file. However, the number of columns of matrix and header have to match.
File format
- Recommended delimiters are
- "\t" tab
- " " space
- "," comma
- The decimal separator is represented by .
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| String | fileName | "Name of file" | |
| String | delimiter | "\t" | Delimiter |
| Real[:,:] | matrix | Actual matrix to be written to CSV file | |
| String | header | fill("", 0, size(matrix, 2)) | Header lines to be written to CSV file |
| Integer | significantDigits | 6 | Number of significant digits |