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

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

merged trunk-jpl and trunk for revision 13393

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