MATLAB: How can i verify time step of excel files

importing excel dataMATLAB and Simulink Student Suitetime step

Hello,
I have several excel files (.xlsx) with time data how can i check that the time step is th same in all files and that it does not lack ?

Best Answer

After you load the file in to matlab workspace, name the variable for time. Then you can use diff() function to find the difference in consecutive values.
Assume your time variable is t, then if you do
plot(diff(t))
then, the plot will show you the time steps.