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.
- 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
- 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 -
- https://www.mathworks.com/discovery/fdir.html ,
- https://www.mathworks.com/help/fault-analyzer/index.html?s_tid=srchtitle_support_results_1_Simulink+Fault+Analyzer
You may also refer to below documentation about Residual Analysis:
