Cody

Solution 2080693

Submitted on 5 Jan 2020
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
tic; N=10^6; x=rand(1,N); y=Aye(N); assert(numel(y)==N*N) assert(isequal(x*y,x)) assert(toc<2)

Error using eye CLASSNAME input must be a valid numeric or logical class name. Error in Aye (line 2) y = eye(N,'distributed'); Error in Test1 (line 4) y=Aye(N);