I need to change the variable name of a scope. How can I do it with code?
Seems get_param
does not work for scopes.
get_param('untitled/scope','DialogParameters')
ans =
struct with no fields.
To discover (most/many of) the settable/gettable properties for the standard library blocks have a look at the first link returned by
>> docsearch('Block-Specific Parameters')
Specifically, for the variable you are looking for,
>> get_param('untitled/Scope','SaveName')
ans =
ScopeData
>> set_param('untitled/Scope','SaveName','NewName')