matlab simulink residuals generation

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 ,

Réponses (1)

Sanathan
Sanathan le 17 Déc 2025

0 votes

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:

Catégories

En savoir plus sur Simscape dans Centre d'aide et File Exchange

Produits

Version

R2025a

Tags

Question posée :

le 21 Nov 2025

Community Treasure Hunt

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

Start Hunting!

Translated by