Last change
on this file since 17 was
17,
checked in by zhangj, 10 years ago
|
To have a stable version on the server.
|
-
Property svn:executable set to
*
|
File size:
288 bytes
|
Line | |
---|
1 | function xy = fmap_select |
---|
2 | |
---|
3 | xy = []; |
---|
4 | % Loop, picking up the points. |
---|
5 | disp('Left mouse button picks points.') |
---|
6 | disp('Right mouse button picks last point.') |
---|
7 | hold on |
---|
8 | button = 1; |
---|
9 | n=0; |
---|
10 | while button == 1 |
---|
11 | [xi,yi,button] = ginput(1); |
---|
12 | plot(xi,yi,'ro') |
---|
13 | n = n+1; |
---|
14 | xy(:,n) = [xi;yi]; |
---|
15 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.