For a given number between 1-365 (a day number in a non leap year), you should check which day of which month it is.
n=35 should give back 4 Feb.
Hi Hassan: Thanks for the problem! You might want to be clear that this is for (I assume) a non leap year.
Thanks Ned, DONE ;)
Find all elements less than 0 or greater than 10 and replace them with NaN
Replace NaNs with the number that appears to its left in the row.
Remove the two elements next to NaN value
Determine the length of a string of characters
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office