Cody

Problem 45478. Problem for beginners

Solution 2263676

Submitted on 8 May 2020 by Tamás Utasi
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   Pass
x = [1 2 3;4 5 6;7 8 9]; y_correct = [2 1 3;5 4 6;8 7 9]; assert(isequal(your_fcn_name(x),y_correct))

y = 2 1 3 5 4 6 8 7 9 y = 2 1 3 5 4 6 8 7 9

2   Pass
x = [1 2 3 4 5 6 7;7 6 5 4 3 2 1]; y_correct = [6 2 3 4 5 1 7;2 6 5 4 3 7 1]; assert(isequal(your_fcn_name(x),y_correct))

y = 6 2 3 4 5 1 7 2 6 5 4 3 7 1 y = 6 2 3 4 5 1 7 2 6 5 4 3 7 1

Suggested Problems

More from this Author9

Community Treasure Hunt

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

Start Hunting!