Inputing value in the push button of my GUI
5 views (last 30 days)
Show older comments
robert lewis
on 12 Jan 2018
Answered: Akhilesh Thakur
on 12 Jan 2018
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?
0 Comments
Accepted Answer
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)
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!