An explanation of common notations of area codes would be nice for us non-Americans :)
I (as French) Agree. A Wikipedia link which would explain supported area codes is definitely missing.
"You can assume the first three digits of a ten-digit number will always be the area code." Hmmm.... too bad there was no explanation applying to telephone numbers with more (or less?) than ten digits.
The problem fails to mention that the area codes should be sorted, and that phone numbers may have country codes.
Apparently the order needs to be the same as that defined by the test suite; which is not in the order of the phone numbers given :(
Is there a way to execute regexp/regexprep with multiple expresssions at the same time?
Not sure what's going on here, but it works in my actual MATLAB program, and Octave.
Replace NaNs with the number that appears to its left in the row.
Counting in Finnish
Back to basics 19 - character types
Test if two numbers have the same digits
Renaming a field in a structure array
Implement a ROT13 cipher
Find all elements less than 0 or greater than 10 and replace them with NaN
Remove all the consonants
Most nonzero elements in row
Find the treasures in MATLAB Central and discover how the community can help you!
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