What problem does it solve?
Analytical linearization with linearize fails or returns zero for Simulink models containing hard discontinuities such as PWM, switching elements, relays, or quantizers, leaving no way to obtain frequency response data. This Skill provides a simulation-based estimation workflow using frestimate that works on any discontinuous model.
Core Features & Use Cases
- Simulation-Based Estimation: Estimate frequency response with frestimate using PRBS or Sinestream perturbation signals, producing frd data objects for Bode plots and margin analysis.
- Guided Signal Selection: Decision logic for choosing PRBS versus Sinestream, configuring sample times, amplitudes, and validating simulation duration with getSimulationTime.
- Time-Varying Source Handling: Identify and disable source blocks with frest.findSources and BlocksToHoldConstant so the model stays at its operating point during estimation.
- Use Case: A buck converter model with PWM switching linearizes to zero. Use this Skill to define I/O points, inject a PRBS signal, run frestimate, and fit a transfer function with tfest to obtain a usable linear model.
Quick Start
Estimate the frequency response of my Simulink model from the input block to the output block using frestimate with a PRBS signal.