Cody

Problem 1129. Reverse the elements of an array

Created by HARISANKAR PS in Community

Reverse the order of elements in an array:

eg:

 input X  = [ 1 2 3 ; 
              4 5 6 ; 
              7 8 9 ]
 output Y = [ 9 8 7 ;
              6 5 4 ;
              3 2 1 ]

Solution Stats

50.14% Correct | 49.86% Incorrect
Last solution submitted on Mar 22, 2019

Solution Comments

Recent Solvers457

Suggested Problems

More from this Author6

Discover MakerZone

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

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!