【SVM預(yù)測】基于支持向量機(jī)實現(xiàn)鋼厚度預(yù)測含Matlab源碼
【SVM預(yù)測】基于支持向量機(jī)實現(xiàn)鋼厚度預(yù)測含Matlab源碼
TT_Matlab
博主簡介:擅長智能優(yōu)化算法、神經(jīng)網(wǎng)絡(luò)預(yù)測、信號處理、元胞自動機(jī)、圖像處理、路徑規(guī)劃、無人機(jī)等多種領(lǐng)域的Matlab仿真,完整matlab代碼或者程序定制加qq1575304183。
1 簡介
鋼厚度的預(yù)測是通常的數(shù)學(xué)統(tǒng)計方法難以擬合的.支持向量機(jī)方法能夠解決小樣本情況下非線性函數(shù)擬合的通用性和推廣性問題,是求復(fù)雜的非線性擬合函數(shù)的一種有效的技術(shù).模型及實例表明,該方法對儲層厚度的預(yù)測是有效的.
2 部分代碼
function varargout = XuiGaiMiMa(varargin)
%
XUIGAIMIMA MATLAB code
for
XuiGaiMiMa.fig
%
XUIGAIMIMA, by itself, creates a new XUIGAIMIMA or raises the existing
%
singleton*.
%
%
H = XUIGAIMIMA returns the handle to a new XUIGAIMIMA or the handle to
%
the existing singleton*.
%
%
XUIGAIMIMA(
’CALLBACK’
,hObject,eventData,handles,...) calls the
local
%
function
named CALLBACK
in
XUIGAIMIMA.M with the given input arguments.
%
%
XUIGAIMIMA(
’Property’
,
’Value’
,...) creates a new XUIGAIMIMA or raises the
%
existing singleton*. Starting from the left, property value pairs are
%
applied to the GUI before XuiGaiMiMa_OpeningFcn gets called. An
%
unrecognized property name or invalid value makes property application
%
stop. All inputs are passed to XuiGaiMiMa_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 XuiGaiMiMa
%
Last Modified by GUIDE v2.5 04-May-2020 23:48:18
%
Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct(’gui_Name’, mfilename, ...
’gui_Singleton’, gui_Singleton, ...
’gui_OpeningFcn’, @XuiGaiMiMa_OpeningFcn, ...
’gui_OutputFcn’, @XuiGaiMiMa_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 XuiGaiMiMa is made visible.
function XuiGaiMiMa_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 XuiGaiMiMa (see VARARGIN)
%
Choose default command line output for XuiGaiMiMa
handles.output = hObject;
%
Update handles structure
guidata(hObject, handles);
%
UIWAIT makes XuiGaiMiMa wait for user response (see UIRESUME)
%
uiwait(handles.figure1);
%
--- Outputs from this function are returned to the command line.
function varargout = XuiGaiMiMa_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;
function edit1_Callback(hObject, eventdata, handles)
%
hObject handle to edit1 (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 edit1 as text
%
str2double(get(hObject,’
String
’)) returns contents of edit1 as a double
set( handles.edit1,’FontName’,’Symbol’);
%
--- Executes during object creation, after setting all properties.
function edit1_CreateFcn(hObject, eventdata, handles)
%
hObject handle to edit1 (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 && isequal(get(hObject,’BackgroundColor’), get(0,’defaultUicontrolBackgroundColor’))
set(hObject,’BackgroundColor’,’white’);
end
function edit2_Callback(hObject, eventdata, handles)
%
hObject handle to edit2 (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 edit2 as text
%
str2double(get(hObject,’
String
’)) returns contents of edit2 as a double
set( handles.edit2,’FontName’,’Symbol’);
%
--- Executes during object creation, after setting all properties.
function edit2_CreateFcn(hObject, eventdata, handles)
%
hObject handle to edit2 (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 && isequal(get(hObject,’BackgroundColor’), get(0,’defaultUicontrolBackgroundColor’))
set(hObject,’BackgroundColor’,’white’);
end
%
--- 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 structure with handles and user data (see GUIDATA)
load userData
temp1=get(handles.edit1,’String’);
temp2=get(handles.edit3,’String’);
temp3=get(handles.edit4,’String’);
%
% 查找用戶編號
no=0;
for i=1:length(userData.username)
if strcmp(userData.username{i},temp3)
no=i;
end
end
if no~=0
set(handles.text5,’String’,’該用戶名已存在’);
else
if strcmp(temp2,temp1)
set(handles.text5,’String’,’注冊成功’);
else
set(handles.text5,’String’,’注冊失敗’);
end
userData.username=[userData.username;{temp3}];
userData.password=[userData.password;{temp1}];
save(’userData’,’userData’)
end
function edit3_Callback(hObject, eventdata, handles)
%
hObject handle to edit3 (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 edit3 as text
%
str2double(get(hObject,’
String
’)) returns contents of edit3 as a double
set( handles.edit3,’FontName’,’Symbol’);
%
--- Executes during object creation, after setting all properties.
function edit3_CreateFcn(hObject, eventdata, handles)
%
hObject handle to edit3 (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 && isequal(get(hObject,’BackgroundColor’), get(0,’defaultUicontrolBackgroundColor’))
set(hObject,’BackgroundColor’,’white’);
end
function edit4_Callback(hObject, eventdata, handles)
%
hObject handle to edit4 (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 edit4 as text
%
str2double(get(hObject,’
String
’)) returns contents of edit4 as a double
%
--- Executes during object creation, after setting all properties.
function edit4_CreateFcn(hObject, eventdata, handles)
%
hObject handle to edit4 (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 && isequal(get(hObject,’BackgroundColor’), get(0,’defaultUicontrolBackgroundColor’))
set(hObject,’BackgroundColor’,’white’);
end
3 仿真結(jié)果
4 參考文獻(xiàn)
[1]陸樹勤等. "基于支持向量機(jī)的儲層厚度預(yù)測方法及應(yīng)用." 復(fù)雜油氣藏 013.003(2008):24-26.
博主簡介:擅長智能優(yōu)化算法、神經(jīng)網(wǎng)絡(luò)預(yù)測、信號處理、元胞自動機(jī)、圖像處理、路徑規(guī)劃、無人機(jī)等多種領(lǐng)域的Matlab仿真,相關(guān)matlab代碼問題可私信交流。
部分理論引用網(wǎng)絡(luò)文獻(xiàn),若有侵權(quán)聯(lián)系博主刪除。
-
2023年各省最新電價一覽!8省中午執(zhí)行谷段電價! 2023-01-03
-
PPT導(dǎo)出高分辨率圖片的四種方法 2022-09-22
-
2023年最新!國家電網(wǎng)27家省級電力公司負(fù)責(zé)人大盤點 2023-03-14
-
全國消防救援總隊主官及簡歷(2023.2) 2023-02-10
-
盤點 l 中國石油大慶油田現(xiàn)任領(lǐng)導(dǎo)班子 2023-02-28
-
我們的前輩!歷屆全國工程勘察設(shè)計大師完整名單! 2022-11-18
-
關(guān)于某送變電公司“4·22”人身死亡事故的快報 2022-04-26
