Cody

# Problem 3046. I want to know everything!

Solution 1770034

Submitted on 2 Apr 2019 by Abdelfatah Teamah
• Size: 6
• This is the leading solution.
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
y=pascal(10)+1; assert(ismember('pascal',find_last_fcn()))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In find_last_fcn (line 2) In ScoringEngineTestPoint1 (line 2) In solutionTest (line 3)]

2   Pass
a=magic(5); b=rot90(a); c=find_last_fcn(); assert(ismember('magic',c)) assert(ismember('rot90',c))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In find_last_fcn (line 2) In ScoringEngineTestPoint2 (line 3) In solutionTest (line 5)]

3   Pass
a=magic(5); b=rot90(a); c=toeplitz(1:5); f=find_last_fcn; assert(ismember('rot90',f)) assert(ismember('magic',f)) assert(ismember('toeplitz',f))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In find_last_fcn (line 2) In ScoringEngineTestPoint3 (line 4) In solutionTest (line 7)]

4   Pass
fliplr(rot90(magic(100))); find_last_fcn; assert(ismember('magic',ans)) assert(ismember('fliplr',ans)) assert(ismember('rot90',ans))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In find_last_fcn (line 2) In ScoringEngineTestPoint4 (line 2) In solutionTest (line 9)]

5   Pass
flipud(fliplr(rot90(magic(100)))); f=find_last_fcn(); assert(ismember('magic',f)) assert(ismember('rot90',f)) assert(ismember('fliplr',f)) assert(ismember('flipud',f))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In find_last_fcn (line 2) In ScoringEngineTestPoint5 (line 2) In solutionTest (line 11)]

6   Pass
a=magic(10); find_last_fcn; g=find_last_fcn(); assert(ismember('magic',g)) assert(ismember('find_last_fcn',g))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In find_last_fcn (line 2) In ScoringEngineTestPoint6 (line 2) In solutionTest (line 13)] [Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In find_last_fcn (line 2) In ScoringEngineTestPoint6 (line 3) In solutionTest (line 13)]