Cody

Solution 2002292

Submitted on 4 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
filetext = fileread('dtrmnt_3x3.m'); assert(isempty(strfind(filetext, 'det')),'det() forbidden')

Error in solution: Line: 3 Column: 9 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.

2   Fail
x = [3 0 2; 2 1 -2; 0 1 1]; y_correct = 13; assert(sum(sum(abs(dtrmnt_3x3(x)-y_correct)))<1e-3)

Error in solution: Line: 3 Column: 9 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.

3   Fail
x = [1 40 2; 7 -9 10; 1 0 1]; y_correct = 129; assert(sum(sum(abs(dtrmnt_3x3(x)-y_correct)))<1e-3)

Error in solution: Line: 3 Column: 9 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.