It's unfortunate that not all names can be build with the periodic table. I've tried this as a kid. The best that I can do with my name is RaF or RaFAl.
I had the syntax for doing this with grep for a list of words, but couldn't quite figure out how to change it into MATLAB code...
fails to "heralds", "frames", "pace", "bathe", etc.
Thanks for the suggestion. I added "frames" to the test.
It's a good thing that the length of a string does not count towards the score!
But it would fail to >12 elements phrase like "ButherLikesStewHisWifeLikesBrowniesWithBananas".
Compute a dot product of two vectors x and y
Arrange vector in ascending order
Replace all zeros and NaNs in a matrix with the string 'error'
Sum the entries of each column of a matrix which satisfy a logical condition.
Sophie Germain prime
Convex Hull Capture
Give a matrix that matches itself when rotated
Placing Beads Neatly in a Box
Find the Next Legal Move in Reversi
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