Path: news.mathworks.com!newsfeed-00.mathworks.com!news.tele.dk!feed118.news.tele.dk!feed116.news.tele.dk!bofh.vszbr.cz!news.radio.cz!newsreader4.netcologne.de!news.netcologne.de!newsfeed.straub-nv.de!feeder.news-service.com!aioe.org!.POSTED!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: position-inverse of a whole number
Date: Tue, 09 Aug 2011 07:55:31 -0500
Organization: Aioe.org NNTP Server
Lines: 17
Message-ID: <j1rant$ec4$1@speranza.aioe.org>
References: <f98c03e5-178d-4b43-892e-f50d47e43fda@e35g2000yqc.googlegroups.com>
NNTP-Posting-Host: Ra5ktKDS+e2BUn9gOePHDQ.user.speranza.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11
X-Notice: Filtered by postfilter v. 0.8.2
Xref: news.mathworks.com comp.soft-sys.matlab:739345

On 8/9/2011 7:15 AM, Candide Voltaire wrote:
> Does Matlab have a function to determine the "position-inverse" of a
> whole number?
> e.g. 123-->321, 7012-->2107...
> If such a function does not exist can anyone here give suggestions on
> how to realise this?
...

One possible way...

 >> n = 123;
 >> r=str2num(fliplr(num2str(n)))
r =
    321
 >>

--