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: Need basic GUI guidance
Replies: 3   Last Post: Nov 2, 2011 4:04 PM

Advanced Search

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

Posts: 3
Registered: 10/13/11
Need basic GUI guidance
Posted: Nov 1, 2011 4:23 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I think this should be a fairly straight forward program to throw together. However I have never done a MATLAB GUI, and I think I might be inaccurately imagine how the process will work. I?ll try to explain what I want to do:

I want to load 6 4-column data files. I have 6 ?load? push buttons. Next to each of those push buttons, I have 6 corresponding toggle buttons (in which I want to display the filename, after it is loaded). Then each toggle button is active, that data will be included in the corresponding output.

Outputs include 4 plots, and 4 histograms, with each activated by a toggle button. I can select 1-4 plots and 1-4 histograms depending on which data I want to see. Only files with active toggle buttons will be included in figures, I can have 1-6 data series in each figure.

I already do all of this is the command window in MATLAB, but I?m trying to make a GUI I can package up as an executable file.

The basic flow I imagine:
-Load 1-6 data files
-Check which figures have active toggle buttons
-Create an empty plot for each active plot toggle button
-Create an empty histogram for each active histogram button
-Check to see which file toggle buttons are active
-Access correct column data for each active plot in each active file
-Plot data in figures

The problem I am having is every button is a separate function, and the data associated is stored locally. I need to use logic operations to check different states, and have some functions accessing data from other functions. I?ve never really done anything like this, so any tips or maybe getting pointed to a good tutorial would be a huge help.


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.