Problem 42618. Is this function available?
Sometimes it is difficult to remember which functions are not allowed on the Cody platform. Given a function as a string, return true if it is available on Cody and false otherwise.
The test suite will be updated periodically, so hard-coding the answers will eventually fail.
Examples
isavailable('bsxfun') returns true
isavailable('pdist2') returns false
Solution Stats
Problem Comments
-
6 Comments
But maybe I am boring...
Interesting problem anyway.
Point well taken. I will not update the test suite until I verify that a permanent solution exists.
Maybe you should evaluate the existance of functions dinamically using try and catch as I did. The only problem is that functions such as eval or feval are available at cody although your test suite declares that they aren't. The system just doesn't allow us to use some functions, but they are there. So are they available or not? I would say that they are*.
* There are even ways to bypass this restriction.
Solution Comments
Show commentsProblem Recent Solvers16
Suggested Problems
-
Is my wife right? Now with even more wrong husband
1325 Solvers
-
Cody Computer Part 1 - Guess the system font used by uipanel
70 Solvers
-
Gauss Eliminate 2-by-2 example
126 Solvers
-
How long do each of the stages of the rocket take to burn?
327 Solvers
-
Matlab Basics - y as a function of x
504 Solvers
More from this Author44
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!