Accept or Reject
Ältere Kommentare anzeigen
I am trying to write a script that allows me to accept or reject data, so would ginput work for that?
Akzeptierte Antwort
Weitere Antworten (1)
Dr. Seis
am 17 Feb. 2012
Yes. Search for "ginput" in your help navigator. You can even set it up so that pressing the button associated with "R" rejects the data and "A" accepts the data... though a quicker way may be to associate mouse button clicks with either rejecting or accepting data.
You can run some tests before hand to see what letters are associated with what button numbers. For example, hitting the "A" button when the blank figure pops up gives the following:
>> [x,y,button] = ginput(1)
x =
0.52189
y =
0.3348
button =
97
1 Kommentar
Frandy
am 17 Feb. 2012
Kategorien
Mehr zu Data Exploration finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!