Find the Index of the first occurrence of the maximum value in a vector and also the maximum value in the vector.
[1 2 5 7 5 7 4 3] Returns 7 and 4
[1 4;2 3] Returns 4 and 2
Second example is [1 4;2 3] Returns 4 and 3, not 2!!
Return the 3n+1 sequence for n
Distance walked 3D
surface of a spherical planet
Project Euler: Problem 5, Smallest multiple
Make a run-length companion vector
Map all the indices of an Array Indices into a Vector giving Index vs Row and Column
Kaggle: Reverse Game of Life - Periods of Oscillators
Molecule Atomic Wt (CHONS) Molecules
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