资源简介
基于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
相关资源
- 嵌入式图形界面MiniGUI的示例程序9例
- STM32基于rt_thread操作系统的SDHC卡文件
- GUI银行管理系统
- STM32F103RBT6驱动UC1698控制芯片的160160黑
- System Design Interview - An Insider’s Guide
- VCS lab 和 VCS lab guide
- easygui手册
- 英文原版-Certified Ethical Hacker CEH Foun
- Guide to Reliable Distributed Systems
- Channel waveguides fabrication in bulk Lithium
- ARM嵌入式系统开发:软件设计与优化
- IT6802 Programming Guide
- CWAP Certified Wireless Analysis Professional
- Academic Writing--a practical guide for studen
- Unigui 1.50.0.1481(含keygen)
- 自己做的一个简单GUI扑克纸牌识别-
- 爬取豆瓣排行榜电影数据(含GUI界面
- 基于最小错误率的贝叶斯手写数字分
- 超级免杀加壳工具GUI版
- maven权威指南中文版+maven the definitiv
- iOS Programming The Big Nerd Ranch Guide 第6版
- A Practical Guide to Support Vector Classifica
- Unity3D 实战视频教程 保卫萝卜 2D 游戏
- Unity无限滚动列表(自动分页和网络请
- Molecular identification polymorphism and asso
- 最新Proxmark3命令帮助中文版.pdf
- mfocGUI.exe软件中文版
- 字库工具 guitool(Trial) Setup 1.13.rar
- GUI数字识别系统代码
- [资源插件]Unity3D_UGUI HUD Text v1.4.1.zip
评论
共有 条评论