matlab simulink residuals generation

38 views (last 30 days)
Archana
Archana on 21 Nov 2025 at 10:24
Answered: Sanathan about 15 hours ago
I am working with MATLAB/Simulink physical models and my goal is to compute residuals automatically, so I can generate thresholds, compute coherence vectors, and ultimately detect faults for machine-learning training.
I tried the Bond Graph method, but rebuilding a full Bond Graph for every new model is very time-consuming. I want to know if MATLAB provides any tools, workflows, or automated methods that can generate residuals directly from Simulink or Simscape models, without manually constructing Bond Graphs every time.
Any solutions, toolboxes, or recommended steps for automatic residual generation in MATLAB would be extremely helpful.
I am using FDI tools, Simlog
simulink residuals genartion i snot available ,

Answers (1)

Sanathan
Sanathan 2 minutes ago
Hey Archana
I understand you are trying to quickly generate residuals for each model without using Bond Graph method as its time-consuming.
As of now, MATLAB lacks a fully automated residual generation tool directly from Simulink or Simscape models for FDI without data-driven modeling or manual setup.
  1. You may try using the System Identification Toolbox. Refer to this Documentation for more info about residual generation using system identification app - https://www.mathworks.com/help/ident/ug/examine-model-residuals.html
  2. Or try the Simulink Fault Analyzer for running multi‑scenario fault injection. However, it’s for fault modeling and injection, not automatic residual creation. Use it to produce healthy/faulty datasets for training. Refer these for more information -
You may also refer to below documentation about Residual Analysis:

Categories

Find more on Sequence and Numeric Feature Data Workflows in Help Center and File Exchange

Tags

Products


Release

R2025a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!