Cody

# Problem 42819. attenuation

Solution 2014072

Submitted on 11 Nov 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
d = 1; alpha = 0; p_correct = 100; assert(abs(attenuation(d,alpha)-p_correct)<0.01);

Error in solution: Line: 1 Column: 17 Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.

2   Fail
d = 1; alpha = 1; p_correct = 36.79; assert(abs(attenuation(d,alpha)-p_correct)<0.01);

Error in solution: Line: 1 Column: 17 Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.

3   Fail
d = [1,1,1]; alpha = [0.1,0.2,0.3]; p_correct = 54.88; assert(abs(attenuation(d,alpha)-p_correct)<0.01);

Error in solution: Line: 1 Column: 17 Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.

4   Fail
d = 1:10; alpha=0.01*(10:(-1):1); p_correct = 11.08; assert(abs(attenuation(d,alpha)-p_correct)<0.01);

Error in solution: Line: 1 Column: 17 Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.