Code covered by the BSD License  

Highlights from
WorldTides_WorldCurrents2010

image thumbnail
from WorldTides_WorldCurrents2010 by John Boon
Combined tidal analysis and prediction programs with file browser for MATLAB 7.6.0 and later

WTWC(varargin)
function varargout = WTWC(varargin)
warning('off','MATLAB:dispatcher:InexactCaseMatch')
% WTWC M-file for WTWC.fig
%      WTWC, by itself, creates a new WTWC or raises the existing
%      singleton*.
%
%      H = WTWC returns the handle to a new WTWC or the handle to
%      the existing singleton*.
%
%      WTWC('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in WTWC.M with the given input arguments.
%
%      WTWC('Property','Value',...) creates a new WTWC or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before WTWC_OpeningFcn gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to WTWC_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 WTWC

% Last Modified by GUIDE v2.5 10-Apr-2010 14:12:48

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @WTWC_OpeningFcn, ...
                   'gui_OutputFcn',  @WTWC_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 WTWC is made visible.
function WTWC_OpeningFcn(hObject, eventdata, handles, varargin)
warning('off','MATLAB:dispatcher:InexactCaseMatch')
% 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 WTWC (see VARARGIN)

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

I=imread('worldlogo.jpg');
A=axes('Units','normalized','position',[0.085 0.65 0.82 0.2]);
image(I)
%set(A,'Visible','off')
%set(A,'Visible','off','HandleVisibility','off')
set(A,'Visible','off')


% Update handles structure
guidata(hObject, handles);

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


% --- Outputs from this function are returned to the command line.
function varargout = WTWC_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 Tide_Analysis.
function Tide_Analysis_Callback(hObject, eventdata, handles)
% hObject    handle to Tide_Analysis (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
try
    tla2010v1
catch
    disp('missing tla2010v1.p and/or tla2010v1.fig')
end

% --- Executes on button press in Tide_prediction.
function Tide_prediction_Callback(hObject, eventdata, handles)
% hObject    handle to Tide_prediction (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
try
    tlp2010v1
catch
    disp('missing tlp2010v1.p and/or tlp2010v1.fig')
end

% --- Executes on button press in coopsVhr.
function coopsVhr_Callback(hObject, eventdata, handles)
% hObject    handle to coopsVhr (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
try
    coopsVhr
catch
    disp('missing coopsVhr.p and/or coopsVhr.fig')
end

% --- Executes on button press in current_analysis.
function current_analysis_Callback(hObject, eventdata, handles)
% hObject    handle to current_analysis (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
try
    tca2010v1
catch
    disp('missing tca2010v1.p and/or tca2010v1.fig')
end

% --- Executes on button press in CoopsR6m.
function CoopsR6m_Callback(hObject, eventdata, handles)
% hObject    handle to CoopsR6m (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
try
    coopsR6m
catch
    disp('missing coopsR6m.p and/or coopsR6m.fig')
end

% --- Executes on button press in Current_Prediction.
function Current_Prediction_Callback(hObject, eventdata, handles)
% hObject    handle to Current_Prediction (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
try
    tcp2010v1
catch
    disp('missing tcp2010v1.p and/or tcp2010v1.fig')
end

% --- Executes on button press in WC1.
function WC1_Callback(hObject, eventdata, handles)
% hObject    handle to WC1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)


% --- Executes on button press in WC2.
function WC2_Callback(hObject, eventdata, handles)
% hObject    handle to WC2 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

Contact us at files@mathworks.com