MATLAB Answers

Number of button groups in GUI depending on user input?

30 views (last 30 days)
Frederikke Hansen
Frederikke Hansen on 1 Dec 2020
Commented: J. Alex Lee on 1 Dec 2020
Let's say I have a structure of data loaded in my the user. The size of this structure depends on the number of measurements taken. I want to create a GUI that asks the user to choose which type of processing they want to apply for each measurement. Therefore, I want a different number of button groups to be created based on the number of measurements contained in the structure. How would I go about doing this?
I am new to GUI coding and haven't been able to find a complete tutorial for what I want to achieve. I am hoping someone can guide me, or point me in the direction of some easy-to-follow resources! :)
  3 Comments

Sign in to comment.

Answers (1)

J. Alex Lee
J. Alex Lee on 1 Dec 2020
I would question the premise...
How about having a listbox that lists each measurement, and only a single button group, whose contents change depending on which measurement is selected (in the listbox)?
  4 Comments
J. Alex Lee
J. Alex Lee on 1 Dec 2020
But how will the user decide which option to choose? Will they first need to be presented with a single visualization of all the data? Does it make sense to forget about the fact that there are multiple data sets in the data structure, and think about the workflow per each data set?

Sign in to comment.

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by