Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Solution 109995

Submitted on 11 Jul 2012

Incorrect

85Size
Leading solution size is 16.
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
Code Input and Output
1
Pass
 
%%
fcn = 'help';
sfcn = {'doc','docsearch','lookfor','matlabpath','which'};
assert(isequal(seeAlso(fcn),sfcn))
A =
    [1x1681 char]    [1x180 char]
titi =
 DOC, DOCSEARCH, LOOKFOR, MATLABPATH, WHICH.
titi =
 doc, docsearch, lookfor, matlabpath, which
titi =
 doc docsearch lookfor matlabpath which
titi =
    ''    'doc'    'docsearch'    'lookfor'    'matlabpath'    'which'
titi =
    'doc'    'docsearch'    'lookfor'    'matlabpath'    'which'
2
Pass
 
%%
fcn = 'regexp';
sfcn = {'regexpi','regexprep','regexptranslate','strcmp','strfind'};
assert(isequal(seeAlso(fcn),sfcn))
A =
    [1x5478 char]    [1x111 char]
titi =
 REGEXPI, REGEXPREP, REGEXPTRANSLATE, STRCMP, STRFIND.
titi =
 regexpi, regexprep, regexptranslate, strcmp, strfind
titi =
 regexpi regexprep regexptranslate strcmp strfind
titi =
    ''    'regexpi'    'regexprep'    'regexptranslate'    'strcmp'    'strfind'
titi =
    'regexpi'    'regexprep'    'regexptranslate'    'strcmp'    'strfind'
3
Pass
 
%%
fcn = 'why';
sfcn = {};
assert(isequal(seeAlso(fcn),sfcn))
A =
    [1x211 char]
titi =
     {}
4
Pass
 
%%
fcn = 'who';
sfcn = {'whos','clear','clearvars','save','load'};
assert(isequal(seeAlso(fcn),sfcn))
A =
    [1x1873 char]    [1x133 char]
titi =
 WHOS, CLEAR, CLEARVARS, SAVE, LOAD.
titi =
 whos, clear, clearvars, save, load
titi =
 whos clear clearvars save load
titi =
    ''    'whos'    'clear'    'clearvars'    'save'    'load'
titi =
    'whos'    'clear'    'clearvars'    'save'    'load'
5
Pass
 
%%
fcn = 'which';
sfcn = {'dir','help','who','what','exist','lookfor'};
assert(isequal(seeAlso(fcn),sfcn))
A =
    [1x1878 char]    [1x92 char]
titi =
 DIR, HELP, WHO, WHAT, EXIST, LOOKFOR.
titi =
 dir, help, who, what, exist, lookfor
titi =
 dir help who what exist lookfor
titi =
    ''    'dir'    'help'    'who'    'what'    'exist'    'lookfor'
titi =
    'dir'    'help'    'who'    'what'    'exist'    'lookfor'
6
Pass
 
%%
fcn = 'what';
sfcn = {'dir','who','which','lookfor'};
assert(isequal(seeAlso(fcn),sfcn))
A =
    [1x1208 char]    [1x79 char]
titi =
 DIR, WHO, WHICH, LOOKFOR.
titi =
 dir, who, which, lookfor
titi =
 dir who which lookfor
titi =
    ''    'dir'    'who'    'which'    'lookfor'
titi =
    'dir'    'who'    'which'    'lookfor'
7
Pass
 
%%
fcn = 'sumabs';
sfcn = {'meanabs','sumsqr','meansqr'};
assert(isequal(seeAlso(fcn),sfcn))
A =
    [1x439 char]    [1x81 char]
titi =
 MEANABS, SUMSQR, MEANSQR.
titi =
 meanabs, sumsqr, meansqr
titi =
 meanabs sumsqr meansqr
titi =
    ''    'meanabs'    'sumsqr'    'meansqr'
titi =
    'meanabs'    'sumsqr'    'meansqr'
8
Fail
 
%%
fcn = 'bsxfun';
sfcn = {'repmat','arrayfun'};
assert(isequal(seeAlso(fcn),sfcn))
Error: Assertion failed.
9
Fail
 
%%
fcn = 'mat2cell';
sfcn = {'cell2mat','num2cell'};
assert(isequal(seeAlso(fcn),sfcn))
Error: Assertion failed.
10
Fail
 
%%
fcn = 'cell2mat';
sfcn = {'mat2cell','num2cell'};
assert(isequal(seeAlso(fcn),sfcn))
Error: Assertion failed.
11
Pass
 
%%
fcn = 'cumprod';
sfcn = {'cumsum','sum','prod'};
assert(isequal(seeAlso(fcn),sfcn))
A =
    [1x585 char]    [1x153 char]
titi =
 CUMSUM, SUM, PROD.
titi =
 cumsum, sum, prod
titi =
 cumsum sum prod
titi =
    ''    'cumsum'    'sum'    'prod'
titi =
    'cumsum'    'sum'    'prod'
12
Pass
 
%%
fcn = 'hankel';
sfcn = {'toeplitz'};
assert(isequal(seeAlso(fcn),sfcn))
A =
    [1x543 char]    [1x65 char]
titi =
 TOEPLITZ.
titi =
 toeplitz
titi =
 toeplitz
titi =
    ''    'toeplitz'
titi =
    'toeplitz'
13
Pass
 
%%
fcn = 'uisetcolor';
sfcn = {'inspect','propedit','uisetfont'};
assert(isequal(seeAlso(fcn),sfcn))
A =
    [1x1020 char]    [1x89 char]
titi =
 INSPECT, PROPEDIT, UISETFONT.
titi =
 inspect, propedit, uisetfont
titi =
 inspect propedit uisetfont
titi =
    ''    'inspect'    'propedit'    'uisetfont'
titi =
    'inspect'    'propedit'    'uisetfont'
14
Pass
 
%%
fcn = 'matlab';
sfcn = {};
assert(isequal(seeAlso(fcn),sfcn))
A =
    {''}
titi =
     {}
15
Pass
 
%%
fcn = 'crazy';
sfcn = {};
assert(isequal(seeAlso(fcn),sfcn))
A =
    {''}
titi =
     {}