AddToBase

Add a variable to base.

Syntax

AddToBase(varname,varval)

Inputs

varname
Variable name.
Type: char
Dimension: string
defval
Variable value.
Type: double | integer | char | log
Dimension: scalar | vector | matrix | struct | cell | Boolean | string

Example

Add q variable to the base with value = 15.

AddToBase('q', 15);