Richard: I believe there are a couple of inconsistencies in the test cases.
- You mention in the problem statement that the 'alphabetized built-in' functions should follow 'alphabetized' functions. However, 'log10' (not built-in) appears before 'log2' (built-in).
- 'i' is also a built-in function. 'which i' indicates that.
'i' in test case 2 is also 'built-in'
I agree , exist('i') return 5 .
I changed hte "i" to "k".
Even though "i" was being used as a variable and not in its capacity as a built-in function.
In what order the names of the function are sorted?
(Thanks for the useful tags.)
The functions are sorted alphabetically and by type.
Ex. [built_in_alphabetical, toolkit_alphabetical]
IMHO, this question makes no sense,
Other methods can be used to examine the exist function. The test sample for this subject is boring.
Replace NaNs with the number that appears to its left in the row.
Number of Circles in a Number
Implement a bubble sort technique and output the number of swaps required
Mysterious digits operation (easy)
Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock.
Create a Cell array of month-end date strings within a date range
Minimum Set (A+A)U(A*A) OEIS A263996
TRON Tourney 000 : Clockwise Wall Hugger
Solve Rubik's Cube - One Rotation
GJam: 2013 Rd1a Bullseye Painting
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