资源简介
蔡振兴版人工智能中过程表示法求解八数码问题的matlab代码,GUI展示,可以自定义输入输出。
代码片段和文件信息
function varargout = bashuma(varargin)
% BASHUMA MATLAB code for bashuma.fig
% BASHUMA by itself creates a new BASHUMA or raises the existing
% singleton*.
%
% H = BASHUMA returns the handle to a new BASHUMA or the handle to
% the existing singleton*.
%
% BASHUMA(‘CALLBACK‘hobjecteventDatahandles...) calls the local
% function named CALLBACK in BASHUMA.M with the given input arguments.
%
% BASHUMA(‘Property‘‘Value‘...) creates a new BASHUMA or raises the
% existing singleton*. Starting from the left property value pairs are
% applied to the GUI before bashuma_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to bashuma_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 bashuma
% Last Modified by GUIDE v2.5 10-Mar-2017 19:18:14
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct(‘gui_Name‘ mfilename ...
‘gui_Singleton‘ gui_Singleton ...
‘gui_OpeningFcn‘ @bashuma_OpeningFcn ...
‘gui_OutputFcn‘ @bashuma_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 bashuma is made visible.
function bashuma_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 bashuma (see VARARGIN)
% Choose default command line output for bashuma
handles.output = hobject;
%handles.A=[451;037;628];
handles.A=[201;465;378];
handles.chose=0;
% Update handles structure
guidata(hobject handles);
% UIWAIT makes bashuma wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = bashuma_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 begin.
function begin_Callback(hobject eventdata handles)
% hobject handle to begin (see GCBO)
% eve
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 23302 2017-03-10 19:18 八数码问题过程表示求解matlab代码\bashuma.fig
文件 17264 2017-03-10 19:18 八数码问题过程表示求解matlab代码\bashuma.m
文件 1053 2017-03-10 11:18 八数码问题过程表示求解matlab代码\move.m
文件 6955 2017-03-10 12:21 八数码问题过程表示求解matlab代码\solveit.m
文件 192 2017-03-13 12:25 八数码问题过程表示求解matlab代码\运行说明.txt
目录 0 2017-03-21 19:25 八数码问题过程表示求解matlab代码\
- 上一篇:提取二值化图像的轮廓线
- 下一篇:已知函数及区间,求区间内极值 matlab程序
评论
共有 条评论