资源简介
基于GUI的数字均衡器设计,代码均有注释,而且所用代码很适合初学者上手。八段式均衡器设计,除基本功能要求外另加了几项功能。适合GUI的大作业的修改基础。
代码片段和文件信息
function varargout = myfig(varargin)
gui_Singleton = 1;
gui_State = struct(‘gui_Name‘ mfilename ...
‘gui_Singleton‘ gui_Singleton ...
‘gui_OpeningFcn‘ @myfig_OpeningFcn ...
‘gui_OutputFcn‘ @myfig_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
% End initialization code - DO NOT EDIT
% --- Executes just before myfig is made visible.
function myfig_OpeningFcn(hobject eventdata handles varargin)
% This function has no output args see OutputFcn.
% hobject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% varargin command line arguments to myfig (see VARARGIN)
% Choose default command line output for myfig
handles.output = hobject;
% Update handles structure
guidata(hobject handles); %更新句柄值
persistent w
w = ones(18);
for i = 1:8
eval(sprintf(‘k = get(handles.band%d‘‘Value‘‘);‘i));
y(i) = k;
end
if y ~= w
set(handles.pushplayr‘Enable‘‘on‘);
set(handles.pushtime‘Enable‘‘off‘);
set(handles.pushplay‘Enable‘‘off‘);
set(handles.pushfre‘Enable‘‘off‘);
set(handles.pushview‘Enable‘‘off‘);
set(handles.pushfilter‘Enable‘‘off‘);
end
% UIWAIT makes myfig wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = myfig_OutputFcn(hobject eventdata handles)
% varargout cell array for returning output args (see VARARGOUT);
% hobject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Get default command line output from handles structure
varargout{1} = handles.output;
% --- Executes on slider movement.
function band8_Callback(hobject eventdata handles)
%obtains the slider value from the slider component
sliderValue = get(handles.band8‘Value‘);
%puts the slider value into the edit text component
set(handles.bands8‘String‘ num2str(sliderValue));
% Update handles structure guidata(hobject handles);
% --- Executes during object creation after setting all properties.
function band8_CreateFcn(hobject eventdata handles)
% hobject handle to band8 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: slider controls usually have a light gray background.
if isequal(get(hobject‘BackgroundColor‘) get(0‘defaultUicontrolBackgroundColor‘))
set(hobject‘BackgroundColor‘[.9 .9 .9]);
end
% --- Executes on slide
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2012-12-23 08:24 均衡器最终版最终版\
文件 1237036 2012-12-16 22:01 均衡器最终版最终版\Dragon (2).wav
文件 884780 2012-12-16 22:04 均衡器最终版最终版\dragon.wav
文件 35325 2012-12-16 19:28 均衡器最终版最终版\myfig.asv
文件 17080 2012-12-16 22:15 均衡器最终版最终版\myfig.fig
文件 35770 2012-12-16 22:15 均衡器最终版最终版\myfig.m
文件 688 2012-12-16 19:37 均衡器最终版最终版\新建文本文档.txt
相关资源
- Eleventh Hour Study Guide (Third Edition)
- 遗传算法程序 带GUI界面
- Learning TensorFlow_A Guide to Building Deep L
- ARM® Cortex™-A Series Programmer’s Guide
- 一个自己做的GUI Design Studio原型
- ZebOS Architecture Developer Guide
- Timing Constraints and Optimization User Guide
- Proxmark3 GUI 无限制版解密程序
- Unity NGUI常用字体图集
- nvdia cuda c best practices guide
- ucGUI人机界面(ucOS+ucGUI人机界面实验
- UserGuide_IPNC_RDK_DM36x
- jd-gui for mac
- 云台调试 SimpleBGC_GUI_2_40
- KPCA人脸GUI.zip
- UGUI Super ScrollView2.2.4
- (非扫描版,共18章)Spoken Language P
- 小凡模拟器DynamipsGUI_2.8_CN.rar
- littlevgl汉字生成工具,含测试代码
- opencv+qt+vs的摄像头视频显示和处理G
- A Comprehensive Guide to Digital Electronics a
- 数字图像处理大作业.zip
- unigui自定义下拉combobox
-
unigui_网页if
rame交互 - Design Compiler User Guide
- ogr2ogrGUI版本
- uniGUIchs中文手册第二版
- A Practical Guide to Adopting the Universal Ve
- GUI俄罗斯方块
-
raytracegroundup_v2.1_PLY_Multiplyob
jectsGr
评论
共有 条评论