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)

댓글 수: 2

Star Strider
Star Strider 2016년 1월 24일
I believe you mean first column.
What time format are the time columns in?
Do you want to know specifically if particular rows are not equal, Or do you only need to know if they all are or aren’t equal?
Christopher Chettri
Christopher Chettri 2016년 1월 24일
i wanted to know if all the first colum of matrix A B and C are the same and if not rearrage it to be the same .

댓글을 달려면 로그인하십시오.

 채택된 답변

the cyclist
the cyclist 2016년 1월 24일

0 개 추천

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.

댓글 수: 1

Christopher Chettri
Christopher Chettri 2016년 1월 24일
nice one . thank you very much i really appriciate it.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by