Inputing value in the push button of my GUI

조회 수: 3 (최근 30일)
robert lewis
robert lewis 2018년 1월 12일
답변: Akhilesh Thakur 2018년 1월 12일
Creating a GUI that will convert DMS data to DD (GPS coordinates). I have my code for DMS2DD written and running. I am unsure how to use the GET command to upload input necessary (North or south, Deg, Min, Sec). I have upload both my DMS2DD code and the GUI code if needed for clarifaction in my question.
Do I need to write degLAT = get(handles.degLAT, 'infolat'); for each input value that will be inserted in my text boxes and should my GET command come before or after my code of DMS2DD?

채택된 답변

Akhilesh Thakur
Akhilesh Thakur 2018년 1월 12일
SO you can built the gui using this method. First you have the methodology ready for DMS2DD running. You can make a GUI that will take the input coordinates in one box before conversion. Make another box for showing converted units. When you hit the button for example- SHOW GPS COORDINATES. Then this button should have callback that will take your input values from the previous box where they will be entered and then the output will be written on conversion box.
In short
DMSdata = get(handles.edit1,'String'); %make a seperate box for this
DO the conversion on DMS to DD on DMSdata
Then write this data to the another display box(textbox)
set(handles.text1, 'String', DDdata)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Graphics Object Identification에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by