Sampling time as an input-simulink
问题 I am trying to make a library of functions that will allow me to parameterize filters and other function. In simulink standard blocks, I am only able to set a sampling time prior, rather than take an input. Is there any ideas on how I can create this? My first approach was to use conditionals and a clock to allow this parameter to exist, but the clock cannot be parameterized either. Thanks in advance. 回答1: The only way to do this is to write each of your blocks as S-Functions. If you are