Compare matrices with datenum
1 回表示 (過去 30 日間)
古いコメントを表示
Hi. I have 2 matrices. The first matrix A, (12x1) contains the monthly average values over 10 years. Row 1 is January, row 2 is February and so on. The second matrix B, is 8760x15. In column one there are hourly datenum values for an entire year and in column 15 there daily values. One value has been assigned for an entire day in column 15.
I want to remove an entire day if its value in column 15 is less than the corresponding monthly value in matrix A.
2 件のコメント
回答 (1 件)
Andrei Bobrov
2017 年 5 月 19 日
編集済み: Andrei Bobrov
2017 年 5 月 19 日
out = B(A(month(B(:,1))) <= B(:,end),:);
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Dates and Time についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!