How can I create a loop using date form ?
조회 수: 1 (최근 30일)
I need to create a loop that starts with the date and finish date in this end_data after running hour by hour!
I thought I would create multiple loops, but that's not very nice, I think there is a specific function but do not know which. I will be very grateful for any help.
Leah 2013년 4월 17일
Not sure if this is the range you wanted, but you can change start and end date to what you like
start_date='2/04/2013 0:00'; end_date='2/04/2013 8:00';
%use matlab datenums
cellstr(datestr(date_array)) % display in date format
Also, do not use "date" as a variable name. It is a function in matlab to return the current date