Cody

Problem 1217. create a circulant matrix

Solution 2525504

Submitted on 12 Jun 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
x = [0 0 1]; y_correct = [0 1 0; 0 0 1; 1 0 0]; assert(isequal(circulant(x),y_correct))

Undefined function 'circulant' for input arguments of type 'double'. Error in Test1 (line 3) assert(isequal(circulant(x),y_correct))