wait(ROI) blocks execution of the MATLAB® command line until the operation on the ROI object ROI
completes. Indicate completion by double-clicking the ROI object.
Create an ROI on the axes. Click and drag the mouse to create the rectangular ROI.
roi = drawrectangle;
At the command line, view the value of the Position property of the ROI.
roi.Position
ans = 1×4
57.0000 146.0000 141.0000 87.0000
Call the wait method of the ROI. This blocks the command line until an operation on the ROI completes. For example, you can move the ROI, reshape it, or rotate it (if you have enabled rotation). For this example, position the cursor inside the ROI, click and drag the ROI over the image to a new location. To indicate completeness, double-click the ROI.
wait(roi)
Back at the command line, check the value of the ROI's Position property. You can see that the values have changed to represent the new position.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Seleziona un sito web
Seleziona un sito web per visualizzare contenuto tradotto dove disponibile e vedere eventi e offerte locali. In base alla tua area geografica, ti consigliamo di selezionare: .
Puoi anche selezionare un sito web dal seguente elenco:
Come ottenere le migliori prestazioni del sito
Per ottenere le migliori prestazioni del sito, seleziona il sito cinese (in cinese o in inglese). I siti MathWorks per gli altri paesi non sono ottimizzati per essere visitati dalla tua area geografica.