struct_to_ws_all.m
PURPOSE: Places all variables found in structure in WS
works through all substructures to find ALL variables
(no structures copied to WS only variables)
SYNTAX:
[names, str_names]= struct_to_ws_all(struc);
INPUT: <default>
s = Any Matlab Structure
toupper = 1; make all variables UPPER CASE, -1=lower case, <0>=no change
putwhere = 'base'; puts variables in base WS; <'caller'>=in calling routine
OUTPUT:
names name of all variables made in environment (ex. PSIRZ)
str_names full name of all substructures found in struc (ex. eq.GEQDSK)
NOTE: No structures copied to WS (only variables are copied)
NOTE: Uses Recursive execution of struc_names to get all variables and structures
SEE: struct_to_ws for only 1st level (variables and structures copy to environment)
Dependencies