Make a Simulink block with dynamiclly changing value

59 Views Asked by At

My overall goal is to use a moving average filter where the filter length changes dynamiclly. My problem is that I really do not know how to change the parametrs in a simulink block. It seems like they are ment to be constant.

I am working with a data stream, i.e. each measurement comes in individually. So there is not one big array/list of numbers I want to apply that to.

My Ideas are

  • Make a Custum S-function
  • Somehow change the parameter for filter length in the moving mean block.
  • Use the matlab function block and make it happen in there.

My problem as a complete beginner is that I do not know which why works (best) and which way is the 'correct' way. And that I would not know how to actually exectute any of the three.

Any help would be greatly appreceated.

0

There are 0 best solutions below