Cody

# Problem 823. Find similar/related functions

Solution 110489

Submitted on 11 Jul 2012
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, log in.

### Test Suite

Test Status Code Input and Output
1   Fail
%% fcn = 'help'; sfcn = {'doc','docsearch','lookfor','matlabpath','which'}; assert(isequal(seeAlso(fcn),sfcn))

```Error: Output argument "sfcn" (and maybe others) not assigned during call to "/users/msssystem14/seeAlso.m>seeAlso". ```

2   Fail
%% fcn = 'regexp'; sfcn = {'regexpi','regexprep','regexptranslate','strcmp','strfind'}; assert(isequal(seeAlso(fcn),sfcn))

```Error: Output argument "sfcn" (and maybe others) not assigned during call to "/users/msssystem14/seeAlso.m>seeAlso". ```

3   Fail
%% fcn = 'why'; sfcn = {}; assert(isequal(seeAlso(fcn),sfcn))

```Error: Output argument "sfcn" (and maybe others) not assigned during call to "/users/msssystem14/seeAlso.m>seeAlso". ```

4   Fail
%% fcn = 'who'; sfcn = {'whos','clear','clearvars','save','load'}; assert(isequal(seeAlso(fcn),sfcn))

```Error: Output argument "sfcn" (and maybe others) not assigned during call to "/users/msssystem14/seeAlso.m>seeAlso". ```

5   Fail
%% fcn = 'which'; sfcn = {'dir','help','who','what','exist','lookfor'}; assert(isequal(seeAlso(fcn),sfcn))

```Error: Output argument "sfcn" (and maybe others) not assigned during call to "/users/msssystem14/seeAlso.m>seeAlso". ```

6   Fail
%% fcn = 'what'; sfcn = {'dir','who','which','lookfor'}; assert(isequal(seeAlso(fcn),sfcn))

```Error: Output argument "sfcn" (and maybe others) not assigned during call to "/users/msssystem14/seeAlso.m>seeAlso". ```

7   Fail
%% fcn = 'sumabs'; sfcn = {'meanabs','sumsqr','meansqr'}; assert(isequal(seeAlso(fcn),sfcn))

```Error: Output argument "sfcn" (and maybe others) not assigned during call to "/users/msssystem14/seeAlso.m>seeAlso". ```

8   Fail
%% fcn = 'bsxfun'; sfcn = {'repmat','arrayfun'}; assert(isequal(seeAlso(fcn),sfcn))

```Error: Output argument "sfcn" (and maybe others) not assigned during call to "/users/msssystem14/seeAlso.m>seeAlso". ```

9   Fail
%% fcn = 'mat2cell'; sfcn = {'cell2mat','num2cell'}; assert(isequal(seeAlso(fcn),sfcn))

```Error: Output argument "sfcn" (and maybe others) not assigned during call to "/users/msssystem14/seeAlso.m>seeAlso". ```

10   Fail
%% fcn = 'cell2mat'; sfcn = {'mat2cell','num2cell'}; assert(isequal(seeAlso(fcn),sfcn))

```Error: Output argument "sfcn" (and maybe others) not assigned during call to "/users/msssystem14/seeAlso.m>seeAlso". ```

11   Fail
%% fcn = 'cumprod'; sfcn = {'cumsum','sum','prod'}; assert(isequal(seeAlso(fcn),sfcn))

```Error: Output argument "sfcn" (and maybe others) not assigned during call to "/users/msssystem14/seeAlso.m>seeAlso". ```

12   Fail
%% fcn = 'hankel'; sfcn = {'toeplitz'}; assert(isequal(seeAlso(fcn),sfcn))

```Error: Output argument "sfcn" (and maybe others) not assigned during call to "/users/msssystem14/seeAlso.m>seeAlso". ```

13   Fail
%% fcn = 'uisetcolor'; sfcn = {'inspect','propedit','uisetfont'}; assert(isequal(seeAlso(fcn),sfcn))

```Error: Output argument "sfcn" (and maybe others) not assigned during call to "/users/msssystem14/seeAlso.m>seeAlso". ```

14   Fail
%% fcn = 'matlab'; sfcn = {}; assert(isequal(seeAlso(fcn),sfcn))

```Error: Output argument "sfcn" (and maybe others) not assigned during call to "/users/msssystem14/seeAlso.m>seeAlso". ```

15   Fail
%% fcn = 'crazy'; sfcn = {}; assert(isequal(seeAlso(fcn),sfcn))

```Error: Output argument "sfcn" (and maybe others) not assigned during call to "/users/msssystem14/seeAlso.m>seeAlso". ```