Inputing value in the push button of my GUI

7 views (last 30 days)
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?

Accepted Answer

Akhilesh Thakur
Akhilesh Thakur on 12 Jan 2018
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)

More Answers (0)

Categories

Find more on Automotive in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!