Cody

# Problem 42618. Is this function available?

Solution 2888756

Submitted on 29 Aug 2020
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))

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

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

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

Assertion failed.

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

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

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

Assertion failed.

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

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

Assertion failed.

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

Assertion failed.

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

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

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

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

Assertion failed.

15   Pass

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

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

Assertion failed.

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

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

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

Assertion failed.

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

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

23   Pass

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

Assertion failed.

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

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!