Inputing value in the push button of my GUI

3 次查看(过去 30 天)
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