What test 3 means???
The question is simple yet really well thought. One of my very fundamental concepts got clarified after solving this problem.
Please, edit the problem to make it clear 'eval' cannot be used.
I think same like Fulaninho de Tal, You need edit the problem and it clear 'eval' and 'str2func' cannot be used.
How do do want to handle when the index is bigger than the size of the array? In solution 2 or 3 you enter a 5x5 array, but request slice index 10.
the problem needs more explanation
Sum all integers from 1 to 2^n
Back to basics 1 - Saving
Basics: 'Find the eigenvalues of given matrix
Extra safe primes
Give the Shortest Path Through The Maze
Pig Latin to English Translator
First N Perfect Squares
Generalized N-Cards Problem
Determine if a Given Number is a Triangle Number
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