Skip to content

an IIR filter implementation to be used as a system dynamics simulator

Notifications You must be signed in to change notification settings

Useful-Code/versatile_dynamics

Repository files navigation

versatile_dynamics

an IIR filter implementation to be used as a system dynamics simulator

The filter coeffs can be generated from a continous transfer function within matlab

====Generate B and A filter coeffs====

  • create a continuous transfer function to encode your behaviour
    • system = tf([],[]);
  • turn it into a discrete transfer function:
    • digisystem = c2d(system, sample_period)
  • get the coeffs out of there, in vector format:
    • tfdata(digisystem, 'v');
  • Use the format shown with ''help filter'' to write your own dynamics function

About

an IIR filter implementation to be used as a system dynamics simulator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages