Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
Jared
Posts:
3
Registered:
10/13/11
|
|
Need basic GUI guidance
Posted:
Nov 1, 2011 4:23 PM
|
|
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.
Thanks
|
|
|
|