フィルターのクリア

Load Column Data in Popup Menu Guide

1 回表示 (過去 30 日間)
Amanda
Amanda 2012 年 9 月 2 日
I have a two column text file:
A.txt
Winter Temp Summer Temp
23 78
43 87
34 90
23 99
I want to download the Winter Temp Data in popup_menu_Winter and
Summer Temp Data in popup_menu_Summer. So the popup_menu_Winter will
display the data values:
23
43
34
23
And the same for Summer Temp.
Thanks,
Amanda

採用された回答

Sven
Sven 2012 年 9 月 2 日
Hi Amanda,
fid = fopen('A.txt');
datas = textscan(fid,'%f %f','headerlines',1);
fclose(fid);
figure
winterHandle = uicontrol('Style','popupmenu','String', datas(1),'Position',[0 0 60 20]);
summerHandle = uicontrol('Style','popupmenu','String', datas(2),'Position',[100 0 60 20]);
  1 件のコメント
Amanda
Amanda 2012 年 9 月 2 日
Sven,Thanks.
I have been at this for awhile.

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

その他の回答 (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