Filter löschen
Filter löschen

How can I get two different inputs on map ? like separate x and separate y by using ginput? like when I click first time I get x input and when click second time I get y value. the code which i am trying is below?

2 Ansichten (letzte 30 Tage)
pause(1); h=msgbox('Please Select the centre for circle 1 using the Left Mouse button'); xlabel('Please Select the centre for circle 1 using the Left Mouse button','Color','black'); uiwait(h,5); if ishandle(h) == 1 delete(h); end
xlabel('Please Select the centre for circle 1 using the Left Mouse button','Color','blue'); but=0; while (but ~= 1) %Repeat until the Left button is not clicked [xval,yval,but]=ginput(2); end

Antworten (0)

Kategorien

Mehr zu Lighting, Transparency, and Shading finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by