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.
Which doors are open?
Reverse the Words (not letters) of a String
Clock Hand Angle 1
Return the Nth Output from an Input Command
First N Perfect Squares
THE CALCULATOR OF LOVE
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