필터 지우기
필터 지우기

HOW FIND ERROR AND MERGE TWO TIME DATASET

조회 수: 1 (최근 30일)
Emanuele De Astis
Emanuele De Astis 2021년 2월 27일
댓글: Emanuele De Astis 2021년 2월 28일
Hello everyone, i have extract two data about time of entering and leaving home from a dataset, and i want merge the two data to know the duration of leaving home, but one of them has 1 more raw and i'm not able to merge them, someone know a way ?
Home=[Leave Enter];
Home.Duration=Home.Enter-Home.Leave;
duration1=find(Home.Duration < 0)
i use "duration1" to find if there is mistake in time association, so if the value of coloumn Duration is negative, somethings is wrong
thanks.
  댓글 수: 5
dpb
dpb 2021년 2월 28일
Well, yes. But when they're sorted, they'll be in order and reshape() will restore two columns after get rid of odd man out...
Emanuele De Astis
Emanuele De Astis 2021년 2월 28일
understood, thanks

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by