vardetail

Shows variable scope and internal type for each variable name recognized by the interpreter.

Syntax

vardetail

Example

Assign a series of variables and run varlist and vardetail to see the information available.

t_number = 1234;
t_float = pi;
t_string = 'testing123';
t_matrix = [ 11 12; 21 22];
t_struct.number = t_number;
t_struct.float = t_float;
t_struct.string = t_string;
t_struct.matrix = t_matrix;
printf('varlist information:\n');
varlist
printf('vardetail information:\n');
vardetail

varlist information:
t_float t_matrix t_number t_string t_struct 
vardetail information:
t_float scope Base type number
t_matrix scope Base type matrix [2 x 2] pointer a1fb8f0 count 2
t_number scope Base type number
t_string scope Base type string
t_struct scope Base type struct [1 x 1]