source: issm/trunk/src/m/exp/expswapxy.m@ 13975

Last change on this file since 13975 was 13975, checked in by Mathieu Morlighem, 12 years ago

merged trunk-jpl and trunk for revision 13974

File size: 407 bytes
Line 
1function expswapxy(filename)
2%EXPSWAP - swap x and y fields
3%
4% Usage:
5% expswap(file)
6%
7% See also EXPMASTER, EXPDOC
8
9contours=expread(filename,1);
10
11newcontours=contours(1);
12
13for i=1:length(contours),
14 contour=contours(i);
15 newcontour=contour;
16 newcontour.x=contour.y;
17 newcontour.y=contour.x;
18 newcontours(end+1)=newcontour;
19end
20newcontours=newcontours(2:end);
21
22expwrite(newcontours,filename);
Note: See TracBrowser for help on using the repository browser.