Hi guys, i have a table with 6 columns and 4 million rows. Column1 shows the date and column 2 the time. Column 3,4,5,6 display the corresponding values. I want to remove all the rows that are weekends from that table.

 채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2014년 10월 11일

0 개 추천

Look at this example
a={'11-10-2014','12-10-2014','13-10-2014','14-10-2014','15-10-2014','16-10-2014','17-10-2014'}'
b=datenum(a,'dd-mm-yyyy')
c=weekday(b)
out=a(c~=7)

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Tables에 대해 자세히 알아보기

태그

질문:

AA
2014년 10월 11일

댓글:

2014년 10월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by