地理位置拟合源码程序 - matlab其它源码 - 谷速源码
下载频道> 资源分类> matlab源码> 其它源码> 地理位置拟合源码程序

标题:地理位置拟合源码程序
分享到:

所属分类: 其它源码 资源类型: 文件大小: 95 KB 上传时间: 2016-01-24 22:15:23 下载次数: 5 资源积分:1分 提 供 者: matlab源码 地理位置拟合源码程序
内容:
地理位置拟合源码程序,程序员在编程的过程中可以参考学习使用,希望对IT程序员有用,此源码程序简单易懂、方便阅读,有很好的学习价值!
部分代码如下:
function varargout = swq(varargin)
% SWQ MATLAB App displaying water quality for a given location.
%
% Part of the suite of example programs for the "Deploy Anywhere" article
% posted on the "Art of MATLAB" blog at www.mathworks.com. See that article
% for details on how to build and run this app.
%
%      SWQ, by itself, creates a new SWQ or raises the existing
%      singleton*.
%
%      H = SWQ returns the handle to a new SWQ or the handle to
%      the existing singleton*.
%
%      SWQ('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in SWQ.M with the given input arguments.
%
%      SWQ('Property','Value',...) creates a new SWQ or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before swq_OpeningFcn gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to swq_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
 
% Last Modified by GUIDE v2.5 11-Apr-2014 16:51:43
%    
% Peter Webb, June 2014
% Copyright 2014, The MathWorks, Inc.
 
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @swq_OpeningFcn, ...
                   'gui_OutputFcn',  @swq_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 swq is made visible.
function swq_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 swq (see VARARGIN)
 
% Choose default command line output for swq
handles.output = hObject;
 
% Update handles structure
guidata(hObject, handles);
 
% UIWAIT makes swq wait for user response (see UIRESUME)
% uiwait(handles.figure1);
bkg = imread('swqLogo.jpg');
image(bkg);
axis off
set(handles.radius,'Value',3);
 
% --- Outputs from this function are returned to the command line.
function varargout = swq_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 report.
function report_Callback(hObject, eventdata, handles)
% hObject    handle to report (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
 
% Busy cursor
oldpointer = get(handles.figure1, 'pointer'); 
set(handles.figure1, 'pointer', 'watch') 
drawnow;
 
% Back to the previous cursor on exit or error
restoreCursor = onCleanup(@()set(handles.figure1, 'pointer', oldpointer));
 
% Create report
 
waterQuality = [];
try
    waterQuality = ...
        checkWaterQuality(get(handles.latitude,'String'), ...
                        get(handles.longitude, 'String'), ...
                        (get(handles.radius, 'Value') * 2) - 1, ...
                        get(handles.start, 'String'), 'Contaminants.xml');
catch me
    if strcmp('MATLAB:urlread:Timeout', me.identifier)
        errordlg(['EPA/USGS web service is not responding. ' ...
            'Try again later.'], 'checkWaterQuality', 'modal');
    else
        errordlg(me.message,'checkWaterQuality', 'modal');
    end
end
 
if ~isempty(waterQuality)
    html = htmlReport(waterQuality);
    txt = strjoin(html);
    web(sprintf('text://%s', txt));
end
 
% --- Executes on button press in quit.
function quit_Callback(hObject, eventdata, handles)
% hObject    handle to quit (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
close(handles.figure1);
 
 
function latitude_Callback(hObject, eventdata, handles)
% hObject    handle to latitude (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 latitude as text
%        str2double(get(hObject,'String')) returns contents of latitude as a double
 
 
% --- Executes during object creation, after setting all properties.
function latitude_CreateFcn(hObject, eventdata, handles)
% hObject    handle to latitude (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 logo on Windows.
%       See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end
 
function longitude_Callback(hObject, eventdata, handles)
% hObject    handle to longitude (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 longitude as text
%        str2double(get(hObject,'String')) returns contents of longitude as a double
 
 
% --- Executes during object creation, after setting all properties.
function longitude_CreateFcn(hObject, eventdata, handles)
% hObject    handle to longitude (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 logo on Windows.
%       See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end
 
 
 
function start_Callback(hObject, eventdata, handles)
% hObject    handle to start (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 start as text
%        str2double(get(hObject,'String')) returns contents of start as a double
 
 
% --- Executes during object creation, after setting all properties.
function start_CreateFcn(hObject, eventdata, handles)
% hObject    handle to start (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 selection change in radius.
function radius_Callback(hObject, eventdata, handles)
% hObject    handle to radius (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
 
% Hints: contents = cellstr(get(hObject,'String')) returns radius contents as cell array
%        contents{get(hObject,'Value')} returns selected item from radius
 
 
% --- Executes during object creation, after setting all properties.
function radius_CreateFcn(hObject, eventdata, handles)
% hObject    handle to radius (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called
 
% Hint: popupmenu 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
 

文件列表(点击上边下载按钮,如果是垃圾文件请在下面评价差评或者投诉):

地理位置拟合源码程序/
地理位置拟合源码程序/DeployAnywhere/
地理位置拟合源码程序/DeployAnywhere/ContaminantLimits.xml
地理位置拟合源码程序/DeployAnywhere/Contaminants.xml
地理位置拟合源码程序/DeployAnywhere/Readme.txt
地理位置拟合源码程序/DeployAnywhere/WaterQuality.java
地理位置拟合源码程序/DeployAnywhere/build.bat
地理位置拟合源码程序/DeployAnywhere/build.sh
地理位置拟合源码程序/DeployAnywhere/checkWaterQuality.m
地理位置拟合源码程序/DeployAnywhere/dc.bat
地理位置拟合源码程序/DeployAnywhere/dc.sh
地理位置拟合源码程序/DeployAnywhere/detectContamination.m
地理位置拟合源码程序/DeployAnywhere/env_linux.csh
地理位置拟合源码程序/DeployAnywhere/env_mac.csh
地理位置拟合源码程序/DeployAnywhere/env_win.bat
地理位置拟合源码程序/DeployAnywhere/extractMeasurements.m
地理位置拟合源码程序/DeployAnywhere/findContamination.m
地理位置拟合源码程序/DeployAnywhere/getContaminantLimits.m
地理位置拟合源码程序/DeployAnywhere/getQueryContaminants.m
地理位置拟合源码程序/DeployAnywhere/getTextChildData.m
地理位置拟合源码程序/DeployAnywhere/htmlReport.m
地理位置拟合源码程序/DeployAnywhere/license.txt
地理位置拟合源码程序/DeployAnywhere/mksplash.m
地理位置拟合源码程序/DeployAnywhere/stringReport.m
地理位置拟合源码程序/DeployAnywhere/summarizeWaterQuality.m
地理位置拟合源码程序/DeployAnywhere/swq.fig
地理位置拟合源码程序/DeployAnywhere/swq.m
地理位置拟合源码程序/DeployAnywhere/swqLogo.jpg
地理位置拟合源码程序/DeployAnywhere/waterQuality.jpg
地理位置拟合源码程序/DeployAnywhere/waterQualityReport.m
地理位置拟合源码程序/DeployAnywhere/xmlreadstring.m

关键词: 地理位置 源码 程序

Top_arrow
回到顶部
联系方式| 版权声明| 招聘信息| 广告服务| 银行汇款| 法律顾问| 兼职技术| 付款方式| 关于我们|
网站客服网站客服 程序员兼职招聘 程序员兼职招聘
沪ICP备19040327号-3
公安备案号:沪公网安备 31011802003874号
库纳格流体控制系统(上海)有限公司 版权所有
Copyright © 1999-2014, GUSUCODE.COM, All Rights Reserved