The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: automatically update editbox of one GUI with contents entered in 2nd GUI
Replies: 3   Last Post: Apr 11, 2012 11:04 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 24
Registered: 2/11/11
automatically update editbox of one GUI with contents entered in 2nd GUI
Posted: Apr 11, 2012 9:32 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I have a GUI that runs a pretty intense data analysis on videos. For a new type of data I need to run, I have modified my original GUI to launch a 2nd GUI that lets me preview a portion of the data. After previewing the the data, I can also input initial conditions into the 2nd GUI, and import them into my main GUI with a push button (via setappdata and getappdata).

Part of the preview (2nd GUI) is to help me select a single, specific frame of the video to analyze, and cut out parts of the video's frames that do not contain useful data, and would only take up cpu/ram for no real need. When I identify the frame I would like to use, I enter it in an editbox, which is (successfully) passed/imported to the code of the main GUI.

There is another editbox in the main GUI that serves the same function that is being kept for the sake of the old data analysis method (as I will be needing it also).

My question is how do I get the frame number I entered in the 2nd GUI to appear in the corresponding editbox of the main GUI when I import the variables?

Short version:
I want to update the contents of an editbox of one GUI with the contents entered into the editbox of a 2nd GUI.

something like:
gaussianFrame = str2num(get(handles.GUI_2_editbox,'string')); %get frame number entered in 2nd gui

set(handles.GUI_1_editbox, 'string', gaussianFrame); %set string in 1st gui editbox to gaussianFrame

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.