📄 page_seven.m
字号:
function varargout = Page_Seven(varargin)global AnL_A AnL_B IMdir_A IMdir_B Hmp Vth DLf SDLf LLf WLfglobal mem_out mem_list % Much of this content is automatically generated by the 'guide' template.% The callbacks for objects from Page_Seven.fig in the 'guide' template are called here.% The variables affected by a particular callback function are listed just below as% global variables.%% PAGE_SEVEN M-file for Page_Seven.fig% PAGE_SEVEN, by itself, creates a new PAGE_SEVEN or raises the existing% singleton*.%% H = PAGE_SEVEN returns the handle to a new PAGE_SEVEN or the handle to% the existing singleton*.%% PAGE_SEVEN('Property','Value',...) creates a new PAGE_SEVEN using the% given property value pairs. Unrecognized properties are passed via% varargin to Page_Seven_OpeningFcn. This calling syntax produces a% warning when there is an existing singleton*.%% PAGE_SEVEN('CALLBACK') and PAGE_SEVEN('CALLBACK',hObject,...) call the% local function named CALLBACK in PAGE_SEVEN.M with the given input% arguments.%% *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 Page_Seven% Last Modified by GUIDE v2.5 04-Oct-2005 16:54:47% Begin initialization code - DO NOT EDITgui_Singleton = 1;gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singleton, ... 'gui_OpeningFcn', @Page_Seven_OpeningFcn, ... 'gui_OutputFcn', @Page_Seven_OutputFcn, ... 'gui_LayoutFcn', [], ... 'gui_Callback', []);if nargin & isstr(varargin{1}) gui_State.gui_Callback = str2func(varargin{1});endif 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 Page_Seven is made visible.function Page_Seven_OpeningFcn(hObject, eventdata, handles, varargin)global AnL_A AnL_B IMdir_A IMdir_B Hmp Vth DLf SDLf LLf WLf mem_out mem_listhandles.output = hObject;guidata(hObject, handles);if AnL_A==1 set(handles.Object7_30,'string','Applied & Inertial Loads (AnL_A=1)');else set(handles.Object7_30,'string','Applied Loads Only (AnL_B=1)');endif IMdir_A==1 set(handles.Object7_31,'string','Interpolates (IMdir_A=1)');else set(handles.Object7_31,'string','Uses larger value - conservative (IMdir_B=1)');endset(handles.Object7_32,'string', num2str(Hmp) )set(handles.Object7_33,'string', num2str(Vth) )set(handles.Object7_34,'string', num2str(DLf) )set(handles.Object7_35,'string', num2str(SDLf) )set(handles.Object7_36,'string', num2str(LLf) )set(handles.Object7_37,'string', num2str(WLf) )%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% --- Outputs from this function are returned to the command line.function varargout = Page_Seven_OutputFcn(hObject, eventdata, handles)varargout{1} = handles.output;%%%%%%%%%%%%%%%%% FUNCTIONS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%function axesA_CreateFcn(hObject, eventdata, handles) % Must Stay!! function Object7_50_Callback(hObject, eventdata, handles)Output1function Object7_52_Callback(hObject, eventdata, handles)g=figure;set(g,'units','normalized','position',[0.54 0.13 0.45 0.38],'menubar','none','numbertitle',... 'off','resize','off');% Seven_text=uicontrol(g,'Style','text','Units','Normalized','Position',[0.01 0.01 0.99 0.99],...% 'String',[char(10) 'Peak Wind Effect' char(10) char(10) 'Pressing the ''OUTPUT'' button '...% 'will open a new page (Output1) that displays the peak wind effect graphically. The '...% 'upper graphs display the rank ordered series of wind effects from the analysis in Run '...% '2 (Program2.m), in which the effect of the minimum wind speed (Vth) is evident. The '...% 'lower graphs display the peak wind effect as a function of mean recurrence interval '...% '(MRI). The left and right graphs are the maximum and minimum wind effect, '...% 'respectively. The value of the wind effect for the specified MRI (mri) is circled in '...% 'all graphs and shown in the lower right section of this page.' char(10) char(10) 'The '...% 'member number can be changed from the drop-down menu and the ''mri'' can also be '...% 'changed within this page.'],'FontName','Garamond','FontSize',12);Seven_text=uicontrol(g,'Style','text','Units','Normalized','Position',[0.01 0.01 0.99 0.99],... 'String',[char(10) 'Peak Wind Effect' char(10) char(10) 'Pressing the ''OUTPUT'' button '... 'will open a new page (Output1) that displays the peak wind effect graphically. The '... 'two graphs display the peak wind effect as a function of mean recurrence interval '... '(MRI). The upper and lower graphs correspond to the maximum and minimum values, respectively. '... 'The value of the wind effect for the specified MRI (mri) is circled in '... 'all graphs and shown in the lower right section of this page.' char(10) char(10) 'The '... 'member number can be changed from the drop-down menu and the ''mri'' can also be '... 'changed within this page.'],'FontName','Garamond','FontSize',12);% --- Executes on button press in Exit_Button.function Exit_Button_Callback(hObject, eventdata, handles)close all
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -