Given an N-dimensional array, A, an index, I, and a dimension, d, return the I th elements of A in the d dimension.
array_slice( A, 5, 3 )
is equivalent to
Note: eval and str2func cannot be used. This is a Cody restriction.
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.
Spot the outlier
Create a Multiplication table matrix...
Number of digits in an integer
Swap two numbers
Check to see if a Sudoku Puzzle is Solved
Determine if a Given Number is a Triangle Number
Lychrel Number Test (Inspired by Project Euler Problem 55)
Multiples of a Number in a Given Range
Roll the Dice!
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