Problem 2315. Reverse the input

Given an input (n), produce an output in the reverse order with out using string variables or string function.


 x = [123]
 y = [321]

NOTE: This is not x = [1, 2, 3]

This should work for all inputs.


 x = [ 96721]
 y = 12769

Solution Stats

38.69% Correct | 61.31% Incorrect
Last solution submitted on Oct 24, 2016

Problem Comments

Solution Comments

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!

Join the 15-year community celebration.

Play games and win prizes!

Learn more