PSG Vector in general format is a table specified by:

 

Name of Vector
Header row of the table with column names
Body of the two column table with numerical data

 

Name

Name of a PSG vector is a string (used in problem statements). Name:

consist of two parts: "vector_" and "<vector_name>" (user specified).
not exceed 128 symbols,  it is not case sensitive, and includes only alphabetic characters, numbers, and underscore sign, “_”.

 

Header row

Header row of the table contains two predefined names of columns:

 

id

defines the counter of rows in the table with numerical data;

value

defines numerical data.

 

Two column table

Table with id values (first column) and  numerical data of vector (second column).

 

 

 Example

PSG Vector should be prepared in appropriate format in different PSG Environments:

 

Run File Environment

 

PSG Vector prepared in General (Text) Format of PSG and saved in file "vector_example.txt":

 

vector_1

 

For more details see PSG Vector in General (Text) Format

 

MATLAB Environment

 

PSG Vector as element of the structure in MATLAB:

 

iargstruc_arr =

   name: 'vector_example'

   vars: 'id        value'

   data: [2x2 double]

iargstruc_arr.data =

   1.0000    0.1000

   2.0000    1.0000

 

For more details see PSG Vector in MATLAB