Path: news.mathworks.com!not-for-mail
From: "Jose Miguel " <josemijauregui@hotmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: switch x y data in a matrix
Date: Mon, 21 Nov 2011 20:21:08 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 32
Message-ID: <jaebrk$p3b$1@newscl01ah.mathworks.com>
Reply-To: "Jose Miguel " <josemijauregui@hotmail.com>
NNTP-Posting-Host: www-00-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1321906868 25707 172.30.248.45 (21 Nov 2011 20:21:08 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 21 Nov 2011 20:21:08 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1468024
Xref: news.mathworks.com comp.soft-sys.matlab:750015

Dear users,

I have the following xyz map:
550000  4625000  0.750
550000  4624900  0.050
550000  4624800  0.050
550000  4624700  0.050
550000  4624600  0.050
.
.
.
550100  4625000  1.25
.
.
.
550200  4625000  0.35
.
.
.
550300  4625000  1.75

I'd like to change the format of the map (keeping Y fixed and X varying) and obviously keep the information of the 3rd column to its original value
550000  4625000  0.75
550100  4625000  1.25
550200  4625000  0.35
550300  4625000  1.75

Would you have any suggestions to do this efficiently? The map is very large and my algorithm is just too unefficient,

Thank you very much for your help!
Regards
Jose,