Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!35g2000pry.googlegroups.com!not-for-mail
From: fas <faisalmufti@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Sort and revert
Date: Wed, 12 Nov 2008 21:53:54 -0800 (PST)
Organization: http://groups.google.com
Lines: 13
Message-ID: <195e56e8-c7b9-49b3-839f-fd0468067e86@35g2000pry.googlegroups.com>
NNTP-Posting-Host: 150.203.45.195
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1226555635 6210 127.0.0.1 (13 Nov 2008 05:53:55 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 13 Nov 2008 05:53:55 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: 35g2000pry.googlegroups.com; posting-host=150.203.45.195; 
	posting-account=GPH0AgoAAAAxfbd_rNaAdoRNt4LD8YmY
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.0.3) 
	Gecko/2008092417 Firefox/3.0.3,gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:500558


Hi,
I have a vector which I have sorted B=sort(A); Now after changing the
10 values on either end I would like to take the vector back to A.
B=sort(A);
B(1:10)=20;
B(90:100)=70;
Now I want to transform B->A so that the indexing is same of what my A
was.

Since its an image I have to revert back to same indexing of vector
only with changed values that I did after sorting.

Any idea ?