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
|
Rev | Line | |
---|
[8469] | 1 | function expswapxy(filename)
|
---|
| 2 | %EXPSWAP - swap x and y fields
|
---|
| 3 | %
|
---|
| 4 | % Usage:
|
---|
| 5 | % expswap(file)
|
---|
| 6 | %
|
---|
| 7 | % See also EXPMASTER, EXPDOC
|
---|
| 8 |
|
---|
| 9 | contours=expread(filename,1);
|
---|
| 10 |
|
---|
| 11 | newcontours=contours(1);
|
---|
| 12 |
|
---|
| 13 | for 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;
|
---|
| 19 | end
|
---|
| 20 | newcontours=newcontours(2:end);
|
---|
| 21 |
|
---|
| 22 | expwrite(newcontours,filename);
|
---|
Note:
See
TracBrowser
for help on using the repository browser.