Hello, Shivanand
You can try the following steps:
- Add Clock block to model time.
- Combine time with your data using Mux.
- Save combined signal using To Workspace or File Write block.
- Analyze in MATLAB for missing data.
load('simout.mat'); % or your variable
time = simout(:,1);
data = simout(:,2:end);
dt = diff(time);
figure;
plot(dt);
title('Time difference between samples');
xlabel('Sample #');
ylabel('Time step (ms)');
% Look for spikes in dt indicating lost samples