Cody

# Problem 2039. Homemade: Control Charts

Solution 367363

Submitted on 10 Dec 2013 by Neil Caithness
• Size: 10
• 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
%% x = rand(1,38); y_correct = 1; assert(isequal(homemade_control_charts(x),y_correct))

y = 1

2   Pass
%% x = rand(1,50); x(end) = 5; y_correct = 0; assert(isequal(homemade_control_charts(x),y_correct))

y = 0

3   Pass
%% x = rand(1,50); y_correct = 1; assert(isequal(homemade_control_charts(x),y_correct))

y = 1

4   Pass
%% x = rand(1,78); x(5) = 12; y_correct = 0; assert(isequal(homemade_control_charts(x),y_correct))

y = 0

5   Pass
%% x = rand(1,38); y_correct = 1; assert(isequal(homemade_control_charts(x),y_correct))

y = 1

6   Pass
%% x = rand(1,41); y_correct = 1; assert(isequal(homemade_control_charts(x),y_correct))

y = 1

7   Pass
%% x = rand(1,36); x(end-8) = 9; y_correct = 0; assert(isequal(homemade_control_charts(x),y_correct))

y = 0

8   Pass
%% x = rand(1,50); x(end) = 5; y_correct = 0; assert(isequal(homemade_control_charts(x),y_correct))

y = 0

9   Pass
%% x = rand(1,50); x(end) = -7; y_correct = 0; assert(isequal(homemade_control_charts(x),y_correct))

y = 0

10   Pass
%% x = rand(1,50)+9; x(end) = -70; y_correct = 0; assert(isequal(homemade_control_charts(x),y_correct))

y = 0

### Community Treasure Hunt

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

Start Hunting!