Incredible usage of anonymous function, arrayfun, and a very novel method to evaluate the Max-Min of an array being generated.
First solution using spdiags. Flexible options available.
Permute diagonal and antidiagonal
Sum the entries of each column of a matrix which satisfy a logical condition.
Unique values without using UNIQUE function
Find a Pythagorean triple
Replace secondary diagonal elements of a square array
Solve Rubik's Cube - Up to Two Face Moves
Mastermind II: Solve in 8 or less
GJam 2013 Veterans: Ocean View (Small)
GJam 2017 Kickstart: Leader (Large)
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