|
Last change
on this file since 21341 was 13975, checked in by Mathieu Morlighem, 13 years ago |
|
merged trunk-jpl and trunk for revision 13974
|
|
File size:
407 bytes
|
| Line | |
|---|
| 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.