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.
Reverse the vector
Number of toolboxes?
Basic electricity in a dry situation
Some Assembly Required
Lychrel Number Test (Inspired by Project Euler Problem 55)
First N Perfect Squares
Triangle Numbers Below N
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