Cody

# Problem 2670. Error handling

Solution 527942

Submitted on 13 Nov 2014 by Abdullah Caliskan
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
%% for ii=1:100 x = rand; try y = check(x); catch y = 'error'; end end assert(isequal(y,x))

2   Pass
%% for ii=1:100 x = -rand; try y = check(x); catch y = 'error'; end end assert(isequal(y,'error'))

x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error x = error

### Community Treasure Hunt

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

Start Hunting!