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

📄 digitizeit.m

📁 关于matlab与digital signal的几个源程序。具体内容请自己下载看!
💻 M
📖 第 1 页 / 共 2 页
字号:
function varargout = digitizeit(varargin)
% DIGITIZEIT M-file for digitizeit.fig
%      DIGITIZEIT, by itself, creates a new DIGITIZEIT or raises the existing
%      singleton*.
%
%      H = DIGITIZEIT returns the handle to a new DIGITIZEIT or the handle to
%      the existing singleton*.
%
%      DIGITIZEIT('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in DIGITIZEIT.M with the given input arguments.
%
%      DIGITIZEIT('Property','Value',...) creates a new DIGITIZEIT or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before digitizeit_OpeningFunction gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to digitizeit_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 digitizeit

% Last Modified by GUIDE v2.5 07-Dec-2002 10:00:12
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @digitizeit_OpeningFcn, ...
                   'gui_OutputFcn',  @digitizeit_OutputFcn, ...
                   'gui_LayoutFcn',  [] , ...
                   'gui_Callback',   []);
if nargin & isstr(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 digitizeit is made visible.
function digitizeit_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 digitizeit (see VARARGIN)

% Choose default command line output for digitizeit
handles.output = hObject;

% Update handles structure
guidata(hObject, handles);

%Himg = findobj(gcbf,'Tag','imgAxes');
%set(gcbf,'CurrentAxes',Himg); 

% This sets up the initial plot - only do when we are invisible
% so window can get raised using digitizeit.
%if strcmp(get(hObject,'Visible'),'off')
%    plot(rand(5));
%end

% UIWAIT makes digitizeit wait for user response (see UIRESUME)
% uiwait(handles.figure1);


% --- Outputs from this function are returned to the command line.
function varargout = digitizeit_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 during object creation, after setting all properties.function xreps_CreateFcn(hObject, eventdata, handles)% hObject    handle to xreps (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 xreps_Callback(hObject, eventdata, handles)% hObject    handle to xreps (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 xreps as text%        str2double(get(hObject,'String')) returns contents of xreps as a doublehandles = guidata(gcbo);
xrepsv = eval(get(gcbo,'String'));
handles.xrepsv = xrepsv;
guidata(gcbo,handles);
% --- Executes during object creation, after setting all properties.function xdata_CreateFcn(hObject, eventdata, handles)% hObject    handle to xdata (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 xdata_Callback(hObject, eventdata, handles)% hObject    handle to xdata (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 xdata as text%        str2double(get(hObject,'String')) returns contents of xdata as a doublehandles = guidata(gcbo);
xdatav = get(gcbo,'String');
mstring = ['[' xdatav ']' ];
handles.xdatav = eval(mstring);
guidata(gcbo,handles);
% --- Executes during object creation, after setting all properties.function yreps_CreateFcn(hObject, eventdata, handles)% hObject    handle to yreps (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 yreps_Callback(hObject, eventdata, handles)% hObject    handle to yreps (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 yreps as text%        str2double(get(hObject,'String')) returns contents of yreps as a doublehandles = guidata(gcbo);
yrepsv = eval(get(gcbo,'String'));
handles.yrepsv = yrepsv;
guidata(gcbo,handles);
% --- Executes during object creation, after setting all properties.function ydata_CreateFcn(hObject, eventdata, handles)% hObject    handle to ydata (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 ydata_Callback(hObject, eventdata, handles)% hObject    handle to ydata (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 ydata as text%        str2double(get(hObject,'String')) returns contents of ydata as a doublehandles = guidata(gcbo);
ydatav = get(gcbo,'String');
mstring = ['[' ydatav ']' ];
handles.ydatav = eval(mstring);
guidata(gcbo,handles);
% --- Executes during object creation, after setting all properties.function linename_CreateFcn(hObject, eventdata, handles)% hObject    handle to linename (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'));end% --- Executes on button press in btnFile.function btnFile_Callback(hObject, eventdata, handles)% hObject    handle to btnFile (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)%Himg = findobj(gcbf,'Tag','imgAxes');
%set(gcbf,'CurrentAxes',Himg); 
[filename, pathname] = uigetfile( ...
{'*.bmp;*.jpg;*.jpeg;*.pcx;*.wmf;*.gif','Image Files (*.bmp,*.jpg,*.jpeg,*.pcx,*.gif)';

⌨️ 快捷键说明

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