Calculate the amount of nanoseconds passed in the current day of a certain date string.
The test suite has been expanded and fixed.
The date string identifies the date and time to the nearest second, so we know that the last 9 digits of the correct number of nanoseconds have to be zeros. Where are these odd, fractional numbers coming from?
Find the palindrome
Test for balanced parentheses
Longest run of consecutive numbers
Change a specific color in an image
Linear system solve
Distance between Berlin and New York in km
Find index of a string in a cell array
calculate the day of the year from a date string.
A little bit of luck needed
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