⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 birds.m

📁 非常好的数字处理教程
💻 M
字号:
function varargout = birds(varargin)% BIRDS M-file for birds.fig%      BIRDS, by itself, creates a new BIRDS or raises the existing%      singleton*.%%      H = BIRDS returns the handle to a new BIRDS or the handle to%      the existing singleton*.%%      BIRDS('CALLBACK',hObject,eventData,handles,...) calls the local%      function named CALLBACK in BIRDS.M with the given input arguments.%%      BIRDS('Property','Value',...) creates a new BIRDS or raises the%      existing singleton*.  Starting from the left, property value pairs are%      applied to the GUI before birds_OpeningFunction gets called.  An%      unrecognized property name or invalid value makes property application%      stop.  All inputs are passed to birds_OpeningFcn via varargin.%%      *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 birds% Last Modified by GUIDE v2.5 06-Apr-2004 15:23:56% Begin initialization code - DO NOT EDITgui_Singleton = 1;gui_State = struct('gui_Name',       mfilename, ...                   'gui_Singleton',  gui_Singleton, ...                   'gui_OpeningFcn', @birds_OpeningFcn, ...                   'gui_OutputFcn',  @birds_OutputFcn, ...                   'gui_LayoutFcn',  [] , ...                   'gui_Callback',   []);if nargin & isstr(varargin{1})    gui_State.gui_Callback = str2func(varargin{1});endif 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 birds is made visible.function birds_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 birds (see VARARGIN)% Choose default command line output for birdshandles.output = hObject;guidata(hObject, handles);set(gcf,'UserData',handles);birdsfn;% UIWAIT makes birds wait for user response (see UIRESUME)% uiwait(handles.birds_fig);% --- Outputs from this function are returned to the command line.function varargout = birds_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 structurevarargout{1} = handles.output;% --- Executes during object creation, after setting all properties.function birdlist_CreateFcn(hObject, eventdata, handles)% hObject    handle to birdlist (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.%       See ISPC and COMPUTER.if ispc    set(hObject,'BackgroundColor','white');else    set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));endfunction birdlist_Callback(hObject, eventdata, handles)% hObject    handle to birdlist (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)% Hints: get(hObject,'String') returns contents of birdlist as text%        str2double(get(hObject,'String')) returns contents of birdlist as a double% --- Executes on button press in play.function play_Callback(hObject, eventdata, handles)% hObject    handle to play (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)	birdsfn 'play';% --- Executes during object creation, after setting all properties.function randamp_CreateFcn(hObject, eventdata, handles)% hObject    handle to randamp (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.%       See ISPC and COMPUTER.if ispc    set(hObject,'BackgroundColor','white');else    set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));endfunction randamp_Callback(hObject, eventdata, handles)% hObject    handle to randamp (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)% Hints: get(hObject,'String') returns contents of randamp as text%        str2double(get(hObject,'String')) returns contents of randamp as a double% --- Executes during object creation, after setting all properties.function randfreq_CreateFcn(hObject, eventdata, handles)% hObject    handle to randfreq (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.%       See ISPC and COMPUTER.if ispc    set(hObject,'BackgroundColor','white');else    set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));endfunction randfreq_Callback(hObject, eventdata, handles)% hObject    handle to randfreq (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)% Hints: get(hObject,'String') returns contents of randfreq as text%        str2double(get(hObject,'String')) returns contents of randfreq as a double% --- Executes during object creation, after setting all properties.function randtime_CreateFcn(hObject, eventdata, handles)% hObject    handle to randtime (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.%       See ISPC and COMPUTER.if ispc    set(hObject,'BackgroundColor','white');else    set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));endfunction randtime_Callback(hObject, eventdata, handles)% hObject    handle to randtime (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)% Hints: get(hObject,'String') returns contents of randtime as text%        str2double(get(hObject,'String')) returns contents of randtime as a double% --- Executes during object creation, after setting all properties.function timestretch_CreateFcn(hObject, eventdata, handles)% hObject    handle to timestretch (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.%       See ISPC and COMPUTER.if ispc    set(hObject,'BackgroundColor','white');else    set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));endfunction timestretch_Callback(hObject, eventdata, handles)% hObject    handle to timestretch (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)% Hints: get(hObject,'String') returns contents of timestretch as text%        str2double(get(hObject,'String')) returns contents of timestretch as a double% --------------------------------------------------------------------function help_Callback(hObject, eventdata, handles)% hObject    handle to help (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)	birdsfn 'help';% --- Executes on button press in plot.function plot_Callback(hObject, eventdata, handles)% hObject    handle to plot (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)	birdsfn 'plot';% --------------------------------------------------------------------function Untitled_1_Callback(hObject, eventdata, handles)% hObject    handle to Untitled_1 (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)% --------------------------------------------------------------------function save_Callback(hObject, eventdata, handles)% hObject    handle to save (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)	birdsfn 'save';% --------------------------------------------------------------------function close_Callback(hObject, eventdata, handles)% hObject    handle to close (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)	birdsfn 'close';% --------------------------------------------------------------------function Untitled_2_Callback(hObject, eventdata, handles)% hObject    handle to Untitled_2 (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)% --------------------------------------------------------------------function sonogram_Callback(hObject, eventdata, handles)% hObject    handle to sonogram (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)	birdsfn 'sonogram';% --------------------------------------------------------------------function fourier_Callback(hObject, eventdata, handles)% hObject    handle to fourier (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)	birdsfn 'fourier';

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -