资源简介
这是一段插补的算法,先输入初始点,在输入终点,最后出入插补步长,按插补按钮就可进行插补,并绘制出图像
代码片段和文件信息
function varargout = chabu1(varargin)
% CHABU1 MATLAB code for chabu1.fig
% CHABU1 by itself creates a new CHABU1 or raises the existing
% singleton*.
%
% H = CHABU1 returns the handle to a new CHABU1 or the handle to
% the existing singleton*.
%
% CHABU1(‘CALLBACK‘hobjecteventDatahandles...) calls the local
% function named CALLBACK in CHABU1.M with the given input arguments.
%
% CHABU1(‘Property‘‘Value‘...) creates a new CHABU1 or raises the
% existing singleton*. Starting from the left property value pairs are
% applied to the GUI before chabu1_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to chabu1_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 chabu1
% Last Modified by GUIDE v2.5 01-Jun-2012 15:51:32
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct(‘gui_Name‘ mfilename ...
‘gui_Singleton‘ gui_Singleton ...
‘gui_OpeningFcn‘ @chabu1_OpeningFcn ...
‘gui_OutputFcn‘ @chabu1_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 chabu1 is made visible.
function chabu1_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 chabu1 (see VARARGIN)
% Choose default command line output for chabu1
handles.output = hobject;
% Update handles structure
guidata(hobject handles);
% UIWAIT makes chabu1 wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = chabu1_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 button press in pushbutton1.
function pushbutton1_Callback(hobject eventdata handles)
% hobject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structur
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 21997 2020-03-23 15:03 Matlab插补法.m
- 上一篇:JPEG图像压缩编码及其MATLAB仿真实现
- 下一篇:数字图像处理源冈萨雷斯源代码
评论
共有 条评论