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

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

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

Example

x = [123] y = [321]

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

This should work for all inputs.

Example

x = [ 96721] y = 12769

40 correct solutions
39 incorrect solutions

Last solution submitted on May 18, 2015

1 Comment

Harish Maradana
on 5 Jun 2014

fliplr(num2str(a))
not working please help me

4 Comments