Cody

Problem 3046. I want to know everything!

Solution 686583

Submitted on 12 Jun 2015
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   Fail
%% y=pascal(10)+1; assert(ismember('pascal',find_last_fcn()))

ans = java.lang.String[]: [0 element array]

Input A of class char and input B of class java.lang.String[] must be the same class, unless one is double.

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

ans = java.lang.String[]: [0 element array]

Input A of class char and input B of class java.lang.String[] must be the same class, unless one is double.

3   Fail
%% 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))

ans = java.lang.String[]: [0 element array]

Input A of class char and input B of class java.lang.String[] must be the same class, unless one is double.

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

ans = java.lang.String[]: [0 element array]

Input A of class char and input B of class java.lang.String[] must be the same class, unless one is double.

5   Fail
%% 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))

ans = java.lang.String[]: [0 element array]

Input A of class char and input B of class java.lang.String[] must be the same class, unless one is double.

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

ans = java.lang.String[]: [0 element array] ans = java.lang.String[]: [0 element array]

Input A of class char and input B of class java.lang.String[] must be the same class, unless one is double.

Suggested Problems

More from this Author43

Community Treasure Hunt

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

Start Hunting!