필터 지우기
필터 지우기

How can I return numbers into days of a specific month

조회 수: 1 (최근 30일)
MAHMOUD ALZIOUD
MAHMOUD ALZIOUD 2017년 9월 22일
댓글: MAHMOUD ALZIOUD 2017년 9월 25일
Hello everyone, I have a matrix with size of 2688*2, each cell contains a number that represents a day in the month, for example from 1 to 31, but each number is repeated like 96 times or sometimes less or more, the matrix looks like something close to 1 1 1 1 1 1 1 (96 times) then 2 2 2 2 2 (90 times) and so on until 31 or 30 or 28 depending on the month, this month is January of 2007, how can i please return those numbers into day names, for example the first day which is 1 in the matrix was Thursday in January 2007 .
Thank you in advance very much guys
  댓글 수: 8
Stalin Samuel
Stalin Samuel 2017년 9월 25일
For better understanding kindly attach the data or specify the data format clearly
MAHMOUD ALZIOUD
MAHMOUD ALZIOUD 2017년 9월 25일
yes sure, this is the data, i tried the above codes but it doesnt give the accurate date, for example this data is for january 2007 and monday has the dates (1, 8, 15, 22 and 29), but in the code i used from above, monday has the dates (3, 10, 17 and 31 ) whih is not right, how can i please fix this

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Dates and Time에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by