Select coordinates using a graphical interface.
g=uiselect(f)
g=uiselect(f,'Title')
g=uiselect(f,[presel])
[g,ctind]=uiselect(f)
[g,ctind]=uiselect(f,'Title',[presel])
The UISELECT function brings up a coordinate trace selection form, listing all coordinates of the imat_ctrace. The user can select elements of f, then click on 'OK'. The selected elements are returned in the output argument g. If a title string is provided, it is used to name the function selection window. If a numeric vector is provided, the coordinates corresponding to the indices in the vector will be preselected when the form is displayed. The optional second output argument ctind will contain the indices into f of the coordinates selected and returned in g.
If the user clicks on 'Cancel', then g=-1 is returned.