MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn moreOpportunities for recent engineering grads.

Apply TodayCorrect

23Size

Leading solution size is 10.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test

Code Input and Output

1

Pass

%% x = (1:5)'; y_correct = [1 5 4 3 2;2 1 5 4 3;3 2 1 5 4;4 3 2 1 5;5 4 3 2 1]; assert(isequal(shifted(x),y_correct))

{Warning: First element of input column does not match first element of input row. Column wins diagonal conflict.} {> In toeplitz at 25 In shifted at 2 In verifyCode>evaluateCode at 189 In verifyCode at 37 In fevalJSON at 14}