Inputing value in the push button of my GUI

3 Ansichten (letzte 30 Tage)
robert lewis
robert lewis am 12 Jan. 2018
Beantwortet: Akhilesh Thakur am 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?

Akzeptierte Antwort

Akhilesh Thakur
Akhilesh Thakur am 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)

Weitere Antworten (0)

Kategorien

Mehr zu Graphics Object Identification finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by