Main Content

Model Gaussian Filter in Simulink

Use the gaussdesign function with the Discrete FIR Filter (Simulink) block to model Gaussian filtering in Simulink®.

The slex_gaussian_filter_model model configures Gaussian filtering to show peak amplitude normalization, filter energy normalization, and sum of coefficient normalization. Coefficients in the Discrete FIR Filter blocks are calculated in the model preload callback using the gaussdesign function. To see the preload callback, go to the model menu, navigate to Modeling -> Model Settings -> Model Properties -> Callbacks.

Plot compares the filter response for the three normalization configurations.