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

41 correct solutions
41 incorrect solutions

Last solution submitted on Jun 12, 2015

1 Comment

Harish Maradana
on 5 Jun 2014

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

4 Comments