I'm attempting to create a figure which contains a drop down menu. Very similar to the example provided here on MatWorks. I want to copy the "drop-down" list so that depending on which value is chosen, a different group of data is plotted. Example data and code are attached Below is an example I've photoshopped to demonstrate what I'm trying to do. I've read about using Callbacks but have had limited success. Below is the view I would like when "Graph1" is selected from the dropdown and "Count" is the button pressed.
when "Graph1" is selected from the dropdown and "Percentage" is the button pressed.
So based on what the user selects the data in my function will change. Here's an example of a table containing some of the data. One issue is that both grpstats and splitapply don't count instances of 0 (as you'll see below I manually add them back in before graphing).
Any help on getting these callbacks working so I have a drop-down menu would be awesome. If my questions aren't clear please let me know. I'll make further clarifications as needed.
0 Comments
Sign in to comment.