|
set_param requires you to specify 3 things:
1. The full path to the block:
i.e. if you have a model called MyModel, which contains a subsystem called mySubsystem, which contains a block called MyBlock, then the first input to set_param needs to be 'MyModel/MySubsystem/MyBlock'.
2. The particular property of that block that you want to change:
i.e. A gain block has a property called 'Gain'.
Search the doc for "Block-Specific Parameters" for a list of the properties for each block.
3. The new value for the property, typically set as a string:
i.e. a new gain value of '10'.
So you'd use the command
>> set_param('MyModel/MySubsystem/MyBlock','Gain','10');
From the error message you give it appears that you are trying to set the property of a subystem called 'Gain', but subsystems don't have a property called 'Gain' and hence the error.
Phil.
|