ar2015
ar2015

Reputation: 6150

matlab get_param for scope

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.

enter image description here

Upvotes: 0

Views: 547

Answers (1)

Phil Goddard
Phil Goddard

Reputation: 10772

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')

Upvotes: 4

Related Questions