there in a manual switch,which can be altered during run time.now if i want to alter the switch through m-file command.what to do?
It looks like this should work
set_param('path/to/block', 'sw', '0')
set_param('path/to/block', 'sw', '1')
I found the names of the block parameters using this command, and just picked the one that seemed likely:
>> get_param(gcb, 'DialogParameters') % select the block first with the mouse
1 Comment
Direct link to this comment:
http://www.mathworks.es/matlabcentral/answers/32167#comment_68005
its to tel that the manual switch is in simulink.