Modifying discrete filter block simulink
조회 수: 1(최근 30일)
I am having issues modifying the discrete filter block, I would like to reproduce the same block, except be able to change the sampling rate of the filter with an an input. Is there any way to: a) See the block in code format b) reproduce the discrete filter in block format. Thanks in advance.
Nobel Mondal 2015년 5월 20일
편집: Nobel Mondal 2015년 5월 20일
If you're trying to modify the sample time from the command prompt, this api might be helpful:
>> set_param('myMdl/Discrete Filter', 'SampleTime', '0.1');
To create an identical twin block, this could be used:
>> add_block('myMdl/Old_block_name', 'myMdl/Twin_block_name');
Hope this helps, Nobel.