PSG Parameter in MATLAB is a numerical single data or string without delimiters. This object is commonly used for specifying parameters for PSG functions.

 

Description

Creation

Technical description

Example

 

Description

 

PSG Parameter in Toolbox consists of:

 

name

name of parameter;

data

value of parameter (real or string);

 

Remarks

Name of  parameter should not exceed 128 symbols, it is not case sensitive and includes only alphabetic characters, numbers, and  underscore sign, “_”.

 

Creation

 

There are two ways for creation of PSG Parameter in MATLAB:

use PSG Parameter in Toolbox GUI;
use tbpsg_parameter_pack for packing data to structure.

 

Technical description

 

PSG Matrix in MATLAB is a set of nested structures:

 

First level is a structure with three fields:

 

type

string with type of PSG object: 'matrix', 'pmatrix', 'point', 'vector', 'parameter';

data

structure with numeric or string values of parameter;

string

structure with names of MATLAB variables that corresponds to values of parameter;

 

Second level are two structures with the fields:

 

1. Data structure:

name

string with name of parameter;

data

values of parameter (real or string);

 

2. String structure:

name

MATLAB variable for string with name of parameter;

data

MATLAB variable for values of parameter;

 

Note. Create or modify described above structures is NOT recommended.

 

Example

 

Pack parameter alpha = 0.95 to structure "toolboxstruc_arr":

toolboxstruc_arr = tbpsg_parameter_pack('alpha', 0.95);

 

Output:

>> toolboxstruc_arr

ans =

     type: 'parameter'

     data: [1x1 struct]

   string: [1x1 struct]

 

>> toolboxstruc_arr.data

ans =

   name: 'alpha'

   data: 0.950000000000000

 

>> toolboxstruc_arr.string

ans =

   name: 'alpha'

   data: 'parameter_alpha_data'

 

Remarks

variable parameter_alpha_data was created automatically.

 

See also

PSG Parameter in Toolbox, PSG Parameter in General (Text) Format