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 ,