Dummies on dates MATLAB
이전 댓글 표시
I have a calendar with specific dates that I want to create dummy variables for.
The calendar is from 1991 to 2014 and there are announcements on different days of the month throughout the time period. This is how it looks:

First column years, second months and third days.
I have the announcement dates that I want to fit to this calendar with dummy variables. These dates look like this:

How do I create an array with the length of my first calendar with 1 for the days of announcement (second calendar) and 0 otherwise. I need to somehow distinguish the different months from each other while assigning 1 to the dates.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Calendar에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!