MATLAB: Help with cheking rows

for loopfunctionif loopmatrix

if i have a 3 matrix A B and C with dimesion of 400X2 and the first row is the time for all A B C .how can i check if the matrix A, B and C all took place at the same time (i.e. to check that each row of measurements took place at the same time)

Best Answer

One way is to use the isequal function.
isequal(A(1,:),B(1,:))
isequal(A(1,:),C(1,:))
If they might only be approximately equal, and not exactly equal, you could test using a tolerance.