当前位置:网站首页>MATLAB---选择省份城市应用
MATLAB---选择省份城市应用
2022-04-21 10:56:00 【小宇2022】

function varargout = example6_1_9(varargin)
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @example6_1_9_OpeningFcn, ...
'gui_OutputFcn', @example6_1_9_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{
1})
gui_State.gui_Callback = str2func(varargin{
1});
end
if nargout
[varargout{
1:nargout}] = gui_mainfcn(gui_State, varargin{
:});
else
gui_mainfcn(gui_State, varargin{
:});
end
function example6_1_9_OpeningFcn(hObject, eventdata, handles, varargin)
handles.output = hObject;
guidata(hObject, handles);
function varargout = example6_1_9_OutputFcn(hObject, eventdata, handles)
varargout{
1} = handles.output;
function province_Callback(hObject, eventdata, handles)
sel = get(hObject, 'value');
stra = {
'哈尔滨'; '大庆'; '阿城'; '齐齐哈尔'; '黑河'};
strb = {
'武汉'; '黄冈'; '襄樊'; '宜昌'; '荆州'; '孝感'};
switch sel
case 1
set(handles.city, 'string', '', 'value', 1)
case 2
set(handles.city, 'string', stra, 'value', 1)
case 3
set(handles.city, 'string', strb, 'value', 1)
end
版权声明
本文为[小宇2022]所创,转载请带上原文链接,感谢
https://blog.csdn.net/m0_38127487/article/details/124312078
边栏推荐
- PHP文件包含:require,require_once;include,include_once
- AC自动机
- 以用户体验五要素的思路,如何编写产品需求文档(PRD)
- AC自动机&后缀数组复习
- 【pytorch】实现1对多的IOU计算技巧
- 万元礼品奖池 玩转「Lighthouse」有奖征文来袭
- package.json
- Motor control - speed loop design
- 24 pictures to conquer border image
- 2022 information and future preparation topic 2 new online judge 1113: digit problem
猜你喜欢

Runhe Dayu learning program

活动精彩预告 | 维塔士+龙智:数字化打造游戏行业「头号玩家」

8-channel can FD, more powerful data recorder gl3400

AcWing 1749. Block billboard II (classified discussion + enumeration)

【生活中的逻辑谬误】对人不对事和两难陷阱

桶排序 ← C语言实现

24 pictures to conquer border image

Tami dog knowledge | basic principles of acquisition of listed companies

万元礼品奖池 玩转「Lighthouse」有奖征文来袭

AcWing 1737. Transmission (classified discussion)
随机推荐
C语言 字符串
站长如何防止网站被黑
Android learning ① various reasons why Android cannot connect to MySQL database and Solutions
【acwing】1459. 奶牛体操(模拟、思维)
make the inifile support unicode in delphi
(坐标型动态规划)lintcode中等248 · 统计比给定整数小的数的个数
现代精算风险理论07:风险度量
PHP文件包含:require,require_once;include,include_once
There was a problem during PIP install, unable to connect (PIP configure mirror source)
你的思维会改变你的行为,你的行为会改变你的境遇
C calling Delphi dll interface problem
Tamigou enterprise M & a platform, list of legal service providers!
2-3. 注册selector
后缀数组专项训练
力扣(LeetCode)110. 平衡二叉树(2022.04.20)
Teach you by hand: rolling bearing fault diagnosis based on deep learning
小程序生命周期
postman设置环境变量,简单又实用
make the inifile support unicode in delphi
Construction of go environment