Cody

# Problem 971. Siblings of a graphics object

Solution 468152

Submitted on 9 Jul 2014
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
%% close all hIn = line; hOut = line; assert(isequal(siblings(hIn),hOut))

Error: Assertion failed.

2   Fail
%% close all hIn = patch; hOut = line; assert(isequal(siblings(hIn),hOut))

Error: Assertion failed.

3   Fail
%% close all hIn = line; hOut = sort([line; line]); assert(isequal(siblings(hIn),hOut))

Error: Assertion failed.

4   Fail
%% close all hIn = subplot(1,2,1); hOut = subplot(1,2,2); assert(isequal(siblings(hIn),hOut))

Error: Assertion failed.

5   Fail
%% close all hIn = figure; hOut = figure; assert(isequal(siblings(hIn),hOut))

Error: Assertion failed.

6   Fail
%% close all hIn = line; hOut = []; assert(isequal(siblings(hIn),hOut))

Error: Assertion failed.

7   Fail
%% close all hIn = 0; hOut = []; assert(isequal(siblings(hIn),hOut))

Error: Assertion failed.

### Community Treasure Hunt

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

Start Hunting!