Cody

Problem 44635. Repetition of matrices

Solution 3115141

Submitted on 8 Oct 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
n = 2; C_correct = [1080,1080]; assert(isequal(matrix_rep(n),C_correct))

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

2   Fail
n = 5; C_correct = [16875,16875]; assert(isequal(matrix_rep(n),C_correct))

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

Suggested Problems

More from this Author29

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!