Importing 2-D Lookup Table Data from a Text File

GoldSim allows you to directly import a text file representing a 2-D Lookup Table. The format for this text file is as follows:

   number of dimensions (in this case, 2)

   the number of columns, the number of rows

   column value 1, column value 2, …, column value n

   row value1, row value 2, …, row value n

   dependent(row 1, column 1), …, dependent(row 1,column n)

   dependent(row 2, column 1), …, dependent(row 2,column n)

  

   dependent(row n, column 1), …, dependent(row n, column n)

For example, the following table:

could be defined using the following text file:

! Example File

2

3, 4

1, 3, 9

1, 2, 4, 8

1, 1.5, 2.5

1.5, 2, 4

2.5, 3, 5

5, 6, 10

The data in the file can be comma delimited or space delimited, and lines beginning with "!" are ignored.

To import the text file press the Import Table… button in the Edit 2-D Table dialog. You will be prompted for the name of the text file.

   Note:  In addition to importing from a text file into a Lookup Table directly from the Edit dialog, you can also link a text file to a Lookup Table, so that it is imported automatically when the file changes.

Related Topics…

Learn more about: