Cody

# Problem 42618. Is this function available?

Solution 2888789

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))

tf = logical 1 Not enough input arguments. 1

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

tf = logical 1 Not enough input arguments. 1

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

tf = logical 1 Not enough input arguments. 1

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

tf = logical 1 Unrecognized function or variable 'pdist'. 0

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

tf = logical 1 Not enough input arguments. 1

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

tf = logical 1 Not enough input arguments. 1

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

tf = logical 1 Not enough input arguments. 1

Assertion failed.

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

tf = logical 1 Not enough input arguments. 1

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

tf = logical 1 Unrecognized function or variable 'pdist2'. 0

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

tf = logical 1 Not enough input arguments. 1

Assertion failed.

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

tf = logical 1 No input argument specified. There should be exactly one input argument. 1

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

tf = logical 1 Not enough input arguments. 1

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

tf = logical 1 Not enough input arguments. 1

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

tf = logical 1 Unrecognized function or variable 'imfindcircles'. 0

15   Pass

tf = logical 1 Too few input arguments. 1

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

tf = logical 1 Not enough input arguments. 1

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

tf = logical 1 Unrecognized function or variable 'ocr'. 0

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

tf = logical 1 Not enough input arguments. 1

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

tf = logical 1 Not enough input arguments. 1

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

tf = logical 1 Not enough input arguments. 1

Assertion failed.

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

tf = logical 1 Not enough input arguments. 1

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

tf = logical 1

23   Pass

tf = logical 1 Not enough input arguments. 1

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

tf = logical 1 Unrecognized function or variable 'houghlines'. 0

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

tf = logical 1 Not enough input arguments. 1

### Community Treasure Hunt

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

Start Hunting!