Number of button groups in GUI depending on user input?
조회 수: 2 (최근 30일)
이전 댓글 표시
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
Rik
2020년 12월 1일
For general advice and examples for how to create a GUI (and avoid using GUIDE), have look at this thread.
답변 (1개)
J. Alex Lee
2020년 12월 1일
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
J. Alex Lee
2020년 12월 1일
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?
참고 항목
카테고리
Help Center 및 File Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!