Yay, 10 msec! Any way to compare solutions by timing performance?
Sum of diagonal of a square matrix
Matrix indexing with two vectors of indices
Return the first and last character of a string
Reverse the elements of an array
kmph to mps
GJam 2013 China Event: Happy Teams 100 Pairs
GJam 2014 Rd 1c: Reordering Train Cars (Large)
Extract Built In Functions and Toolbox Functions from String or Function Handle
Unique: Enhanced Performance - Avoiding Memory Crash
USC Spring 2013 ACM: Snow Cones
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