removing weekends from table

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.

1 件のコメント

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 10 月 11 日
post a sample of your data (one line)

サインインしてコメントする。

 採用された回答

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 ExchangeTables についてさらに検索

タグ

質問済み:

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