필터 지우기
필터 지우기

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 (최근 30일)
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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by