what's the "str2num" mean?
str2num means "convert string to number"; even more cryptic is the fact that "str2num 1:10" is equivalent to "str2num('1:10')" (Matlab allows you to omit the single quotes and parentheses when using functions that take character strings as arguments).
Reverse the vector
Flip the main diagonal of a matrix
Check if number exists in vector
Find out missing number from a vector of 9 elements
The Goldbach Conjecture, Part 2
Sums with Excluded Digits
Reverse Run-Length Encoder
Most nonzero elements in row
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