- If one signal is event-driven (e.g., triggered by a specific condition), it might produce fewer data points compared to a continuously sampled signal.
- Different initial conditions for the signals can lead to different lengths of data if one signal reaches a steady state or a stopping condition before the other.
- If any data processing or filtering is applied to one of the signals before logging, it might alter the data length.
- Display blocks can be added to the signals before logging to visually confirm they are identical during simulation.
- ‘Simulation Data Inspector’ can be used to compare the signals during simulation to identify discrepancies. For more information regarding ‘Simulation Data Inspector’, kindly refer the following documentation - https://www.mathworks.com/help/simulink/slref/simulationdatainspector.html