资源简介
一个简易的MATLAB钢琴,主要是产生正弦波。并能将波形显示出来
代码片段和文件信息
function varargout = piano(varargin)
%PIANO M-file for piano.fig
% PIANO by itself creates a new PIANO or raises the existing
% singleton*.
%
% H = PIANO returns the handle to a new PIANO or the handle to
% the existing singleton*.
%
% PIANO(‘Property‘‘Value‘...) creates a new PIANO using the
% given property value pairs. Unrecognized properties are passed via
% varargin to piano_OpeningFcn. This calling syntax produces a
% warning when there is an existing singleton*.
%
% PIANO(‘CALLBACK‘) and PIANO(‘CALLBACK‘hobject...) call the
% local function named CALLBACK in PIANO.M with the given input
% arguments.
%
% *See GUI Options on GUIDE‘s Tools menu. Choose “GUI allows only one
% instance to run (singleton)“.
%
% See also: GUIDE GUIDATA GUIHANDLES
% Edit the above text to modify the response to help piano
% Last Modified by GUIDE v2.5 13-Dec-2011 17:01:40
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct(‘gui_Name‘ mfilename ...
‘gui_Singleton‘ gui_Singleton ...
‘gui_OpeningFcn‘ @piano_OpeningFcn ...
‘gui_OutputFcn‘ @piano_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 piano is made visible.
function piano_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 unrecognized PropertyName/PropertyValue pairs from the
% command line (see VARARGIN)
% Choose default command line output for piano
handles.output = hobject;
% Update handles structure
guidata(hobject handles);
% UIWAIT makes piano wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = piano_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 when figure1 is resized.
function figure1_ResizeFcn(hobject eventdata handles)
% hobject handle to figure1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
function edit_txt3_Callback(hobject even
- 上一篇:matlab求解差分方程程序
- 下一篇:atlas_Athlon.dll
相关资源
- atlas_Athlon.dll
- matlab求解差分方程程序
- matlab 读取O文件 百分百实用
- 三维天线方向图matlab源代码
- 基于MATLAB_Robotics工具箱的工业机器人
- 有关交织器的matlab程序
- matlab仿真计算光纤的色散和自相位调
- 基于matlab的物料大小分级算法的实现
- 关于MATLAB的LM算法原理
- 用MATLAB控制一个真实的机械臂
- 4R动机器人逆运动学—基于MATLAB
- Gabor的matlab程序,Gabor滤波是一种不错
- 基于NLMS和LMS算法实现回声消除matlab
- 最小资源分配网络MATLAB源码
- MATLAB 动态规划——源代码+详细注释
- 云模型的软件实现文件与具体实现的
- matlab代码实现卷积
- Prim算法 matlab
- Q-Learning算法 Matlab代码实现
- 基于遗传算法寻优的PID控制及MATLAB仿
- MATLAB中V-Blast的ZF和MMSE检测算法仿真代
- FCM目标检测代码
- 二维规划算法的MATLAB程序
- 基于MATLAB的循环频谱检测算法
- matlab 腐蚀膨胀 代码
- SVM分类程序
- 隶属函数与matlab
- LMMSE算法信道均衡MATLAB仿真
- MATLAB+2010b+破解文件
- matlab语音识别系统源代码
评论
共有 条评论