Cody

# Problem 42485. Eliminate Outliers Using Interquartile Range

Solution 1825669

Submitted on 25 May 2019
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
data = [53,55,51,50,60,52]; correct_data = [53,55,51,50,52]; assert(isequal(remove_outlier(data),correct_data))

Error in solution Line: 1 Column: 12 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

2   Fail
data = [0,0,0,0,0]; correct_data = [0,0,0,0,0]; assert(isequal(remove_outlier(data),correct_data))

Error in solution Line: 1 Column: 12 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

3   Fail
data = [1,2,3,4,5,100,100,6,7,8]; correct_data = [1,2,3,4,5,6,7,8]; assert(isequal(remove_outlier(data),correct_data))

Error in solution Line: 1 Column: 12 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

4   Fail
data = [-54,-30,-45,-40,0,-33]; correct_data = [-54,-30,-45,-40,-33]; assert(isequal(remove_outlier(data),correct_data))

Error in solution Line: 1 Column: 12 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

5   Fail
data = [63,64,64,63,53,61,65,63,52,50,65,61,68,137,62,60,64,67,65,63,63,63]; correct_data = [63,64,64,63,65,63,65,62,64,65,63,63,63]; assert(isequal(remove_outlier(data),correct_data))

Error in solution Line: 1 Column: 12 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

6   Fail
data = [1,2,3,4,5,6,7]; correct_data = [1,2,3,4,5,6,7]; assert(isequal(remove_outlier(data),correct_data))

Error in solution Line: 1 Column: 12 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.