Cody

# Problem 42618. Is this function available?

Solution 1913017

Submitted on 27 Aug 2019
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Pass
assert(isequal(isavailable('sum'),true))

ret = 5

2   Pass
assert(isequal(isavailable('mean'),true))

ret = 2

3   Pass
assert(isequal(isavailable('bsxfun'),true))

ret = 5

4   Pass
assert(isequal(isavailable('pdist'),false))

ret = 0

5   Pass
assert(isequal(isavailable('hankel'),true))

ret = 2

6   Pass
assert(isequal(isavailable('std'),true))

ret = 2

7   Fail
assert(isequal(isavailable('evalin'),false))

ret = 5

Assertion failed.

8   Pass
assert(isequal(isavailable('toeplitz'),true))

ret = 2

9   Pass
assert(isequal(isavailable('pdist2'),false))

ret = 0

10   Fail
assert(isequal(isavailable('assignin'),false))

ret = 5

Assertion failed.

11   Fail
assert(isequal(isavailable('cell2mat'),true))

ret = 6

Assertion failed.

12   Pass
assert(isequal(isavailable('arrayfun'),true))

ret = 5

13   Pass
assert(isequal(isavailable('cellstr'),true))

ret = 2

14   Pass
assert(isequal(isavailable('imfindcircles'),false))

ret = 0

15   Fail
assert(isequal(isavailable('imread'),true))

ret = 6

Assertion failed.

16   Pass
assert(isequal(isavailable('plot'),true))

ret = 5

17   Pass
assert(isequal(isavailable('ocr'),false))

ret = 0

18   Pass
assert(isequal(isavailable('cellfun'),true))

ret = 5

19   Pass
assert(isequal(isavailable('dec2bin'),true))

ret = 2

20   Fail
assert(isequal(isavailable('eval'),false))

ret = 5

Assertion failed.

21   Pass
assert(isequal(isavailable('randi'),true))

ret = 5

22   Pass
assert(isequal(isavailable('rng'),true))

ret = 2

23   Pass
assert(isequal(isavailable('fread'),true))

ret = 5

24   Pass
assert(isequal(isavailable('houghlines'),false))

ret = 0

25   Pass
assert(isequal(isavailable('kron'),true))

ret = 2