HOW FIND ERROR AND MERGE TWO TIME DATASET

3 次查看(过去 30 天)
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...

请先登录,再进行评论。

回答(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