Listboxes GUI Multiple Selection

1 回表示 (過去 30 日間)
T
T 2013 年 10 月 16 日
コメント済み: T 2013 年 10 月 18 日
Suppose I have two vectors with the same number of elements:
A = 1 2 3 4 5 6 7 8 9 10
B = 20 40 50 60 80 100 120 140 160 200
Suppose I want to display these in separate list boxes in a GUI - is it possible to do a table instead?
But the idea is the prompt the user to select, say, list box A for values 3 , 5 , 7, 9 and its corresponding value in B and plot them against each other.
Is this possible?
  2 件のコメント
Jan
Jan 2013 年 10 月 16 日
Yes, this is possible. What did you try so far? Which problem occurred?
T
T 2013 年 10 月 17 日
I looked at the following page:
but the example they provide with lb.m doesn't display the polynomials.

サインインしてコメントする。

採用された回答

Image Analyst
Image Analyst 2013 年 10 月 16 日
Try using GUIDE: http://blogs.mathworks.com/videos/category/gui-or-guide/ This is certainly possible. You might like to try a framework where you can easily modify it: MAGIC - it has most of the basic controls on there and you just replace the callbacks (which usually pop up a message or write to a label saying something like "you clicked on a button" or whatever), with your own code.
  7 件のコメント
Image Analyst
Image Analyst 2013 年 10 月 18 日
I never use tables for selecting data - just for displaying a table of numbers. If you want the user to select some I think you're better off with listboxes.
T
T 2013 年 10 月 18 日
Thanks!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by