matlab buttongroup switch case按钮组回调函数
来源:互联网 发布:听歌软件版权 编辑:程序博客网 时间:2024/06/05 22:43
S.fh = figure('units','pixels',...
'position',[200 250 250 200],...
'menubar','none',...
'name','GUI_41',...
'numbertitle','off',...
'resize','off',...
'closerequestfcn',{@fh_crfcn});
S.bg = uibuttongroup('units','pix',...
'style','rad',...
'unit','pix',...
'position',[20 50 70 30],...
'string','Linear');
S.rd(2) = uicontrol(S.bg,...
'style','rad',...
'unit','pix',...
'position',[20 10 70 30],...
'string','Quadratic');
S.rd(3) = uicontrol(S.bg,...
'style','rad',...
'unit','pix',...
'position',[120 50 70 30],...
'string','Cubic');
S.rd(4) = uicontrol(S.bg,...
'style','rad',...
'unit','pix',...
'position',[120 10 70 30],...
'string','Quartic');
'position',[200 250 250 200],...
'menubar','none',...
'name','GUI_41',...
'numbertitle','off',...
'resize','off',...
'closerequestfcn',{@fh_crfcn});
S.bg = uibuttongroup('units','pix',...
'pos',[20 70 210 90]);
S.SEL = 1; % The selectedobject property of S.bg
'style','rad',...
'unit','pix',...
'position',[20 50 70 30],...
'string','Linear');
S.rd(2) = uicontrol(S.bg,...
'style','rad',...
'unit','pix',...
'position',[20 10 70 30],...
'string','Quadratic');
S.rd(3) = uicontrol(S.bg,...
'style','rad',...
'unit','pix',...
'position',[120 50 70 30],...
'string','Cubic');
S.rd(4) = uicontrol(S.bg,...
'style','rad',...
'unit','pix',...
'position',[120 10 70 30],...
'string','Quartic');
function [] = pb_call(varargin)
sel = findobj(get(S.bg,'selectedobject')); % See BUG note in GUI_8
S.SEL = find(S.rd==sel); % Store current radiobutton.
switch sel
case S.rd(1) % Linear
S.RP(1:3) = 0;
S.COL = 'r';
case S.rd(2) % Quadratic
S.RP(1:2) = 0;
S.COL = 'k';
case S.rd(3) % Cubic
S.RP(1) = 0;
S.COL = 'b';
case S.rd(4) % Quartic
S.COL = 'm';
otherwise
% Very unlikely I think.
end
- matlab buttongroup switch case按钮组回调函数
- ExtJs ButtonGroup按钮组
- 9.3 MATLAB switch-case
- yii2 常用组件 -- 按钮组(ButtonGroup)
- Matlab之switch-case语句
- matlab switch case语句用法
- matlab 回调函数函数的使用方法
- Matlab GUI回调函数规则
- Matlab常见回调函数的意义
- 使用 ButtonGroup 来管理不同状态的 Button 按钮组
- ios 中按钮组(类似ButtonGroup)的实现
- MATLAB switch case 语句使用实例源程序
- 实现3个按钮的回调函数
- 对触摸精灵的封装(按钮)及其回调函数
- wxPython-多个按钮使用同一个回调函数
- Android的按钮监听事件&自定义回调函数
- MATLAB编写回调函数(部分 更新)
- matlab的gui的回调函数的使用
- 3D实时渲染中的BSP树和多边形剔除
- 数据库记录锁的一个注意事项
- 最简单的border为1px的表格源代码
- linux redhat enterparse6.1 安装code::blocks10.05
- NoSQL数据库技术特性解析之文档数据库
- matlab buttongroup switch case按钮组回调函数
- 提高班——谁的付出,谁的收获
- 如何在PL SQL中定义及应用配置文件
- LUA学习笔记
- C#编码好习惯
- VFP的GRID中行记录上移或下移一行
- 16.4.5 等待多个事件
- 提高面试代码质量的三要素
- uboot Linux machine_arch_type辨析