Creat List on a Plot to select multiple data sets
조회 수: 2 (최근 30일)
이전 댓글 표시
I want to make a graph with up to 10 data sets plotted on it. My idea is to have the figure with a list where the user can select multiple entries to plot by holding control and clicking what they want to see on the graph. I believe this can be done with an uicontrol... anyone know how?
채택된 답변
Walter Roberson
2017년 5월 31일
There are multiple ways of handling this. One is to provide toggle buttons to select the active graphs. Another is to provide a uitable column that the user toggles on or off the entries of. A third way is to provide a uicontrol('style','list', 'Max', 2) : with the Max parameter set to something larger than 1, the user is permitted to select multiple entries.
댓글 수: 2
Walter Roberson
2017년 6월 1일
For toggle buttons, just create a bunch of them, and do not put them inside a uibuttongroup.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!