⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 page_six.m

📁 关于高层建筑强风条件下风压系数计算
💻 M
字号:
function varargout = Page_Six(varargin)global  saveBij  flnSaveBij  flnSavemaxBij  flnSaveMRI% Much of this content is automatically generated by the 'guide' template.% The callbacks for objects from Page_Six.fig in the 'guide' template are called here.% The variables affected by a particular callback function are listed just below as%      global variables.%% PAGE_SIX M-file for Page_Six.fig%      PAGE_SIX, by itself, creates a new PAGE_SIX or raises the existing%      singleton*.%%      H = PAGE_SIX returns the handle to a new PAGE_SIX or the handle to%      the existing singleton*.%%      PAGE_SIX('Property','Value',...) creates a new PAGE_SIX using the%      given property value pairs. Unrecognized properties are passed via%      varargin to Page_Six_OpeningFcn.  This calling syntax produces a%      warning when there is an existing singleton*.%%      PAGE_SIX('CALLBACK') and PAGE_SIX('CALLBACK',hObject,...) call the%      local function named CALLBACK in PAGE_SIX.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_Six% Last Modified by GUIDE v2.5 02-Nov-2005 11:26:05% Begin initialization code - DO NOT EDITgui_Singleton = 1;gui_State = struct('gui_Name',       mfilename, ...                   'gui_Singleton',  gui_Singleton, ...                   'gui_OpeningFcn', @Page_Six_OpeningFcn, ...                   'gui_OutputFcn',  @Page_Six_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_Six is made visible.function Page_Six_OpeningFcn(hObject, eventdata, handles, varargin)global  saveBij  flnSaveBij  flnSavemaxBij  flnSaveMRIhandles.output = hObject;guidata(hObject, handles);set(handles.Object6_30,'value', saveBij)set(handles.Object6_31,'string', flnSaveBij)set(handles.Object6_32,'string', flnSavemaxBij)set(handles.Object6_33,'string', flnSaveMRI) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% --- Outputs from this function are returned to the command line.function varargout = Page_Six_OutputFcn(hObject, eventdata, handles)varargout{1} = handles.output;%%%%%%%%%%%%%%%%%  FUNCTIONS  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%function axesA_CreateFcn(hObject, eventdata, handles)     % Must Stay!!function Object6_30_Callback(hObject, eventdata, handles)global   saveBijsaveBij     = get(handles.Object6_30,'value'); % Save time history for each (WS,WD) combinationfunction Object6_50_Callback(hObject, eventdata, handles)g=figure;set(g,'units','normalized','position',[0.25 0.06 0.73 0.43],'menubar','none','numbertitle',...    'off','resize','off');Six_text=uicontrol(g,'Style','text','Units','Normalized','Position',[0.01 0.01 0.99 0.99],...    'String',[char(10) 'Wind Load Effect (Bij) Peaks' char(10) char(10) 'The quantity Bij '...    'as a function of time is computed for each specified member, wind direction (WD) and '...    'wind speed (WS). The time histories ''Bij(t)'' are factored via the use of the '...    'appropriate load factors (Page 4). The analysis begins when the ''RUN 1'' button is '...    'pressed.' char(10) char(10) 'The actual time histories are saved for each WD and WS '...    'combination in the file specified by selecting the check box. The program '...    'automatically adds an extension to the file name to include the member number, WD and '...    'WS. Bear in mind that saving these files is inefficient and not necessary for peak '...    'estimation or for estimating the mean recurrence intervals. The peaks of these time '...    'histories (max/min; observed/estimated (if Qs selected in Page 5) are automatically '...    'saved in the file specified, with the member number automatically appended to the '...    'file name. This file includes, among others, the following variables:' char(10)  ...    'Bij_obs_max_mem' char(10) 'Bij_obs_min_mem' char(10) 'Bij_est_max_mem (if Qs selected)'...     char(10) 'Bij_est_min_mem (if Qs selected)'], 'FontName','Garamond','FontSize',12);function Object6_51_Callback(hObject, eventdata, handles)Program1function Object6_52_Callback(hObject, eventdata, handles)g=figure;set(g,'units','normalized','position',[0.3 0.46 0.6 0.31],'menubar','none','numbertitle',...    'off','resize','off');Six_text=uicontrol(g,'Style','text','Units','Normalized','Position',[0.01 0.01 0.99 0.99],...    'String',[char(10) 'Mean Recurrence Interval of Wind Effect' char(10) char(10) 'The '...    'peak wind effect is defined on Page 5. The mean recurrence interval of the wind effect '...    'for a specified member is calculated by using the applicable wind speed database. The '...    'vector of the wind effects corresponding to various mean recurrence intervals is saved '...    'in the file specified. Note: the member number is automatically appended to the end of '...    'this file name.' char(10) char(10) 'This file contains the following variables (among '...    'others):' char(10) 'Mem_Bij_Obs_max' char(10) 'Mem_Bij_Obs_min' char(10) ...    'Mem_Bij_Est_max (if Qs selected)' char(10) 'Mem_Bij_Est_min (if Qs selected)'], ...    'FontName','Garamond','FontSize',12);function Object6_53_Callback(hObject, eventdata, handles)Program2function Object6_54_Callback(hObject, eventdata, handles)global  saveBij  flnSaveBij  flnSavemaxBij  flnSaveMRI[fnSaveBij flSaveBij] = uiputfile({'*.mat','Matlab file (*.mat)'},['Location and name for '...    'Bij time histories']);if fnSaveBij==0else    flnSaveBij = ([ flSaveBij fnSaveBij ]);    set(handles.Object6_31,'string', [ flnSaveBij ]);endfunction Object6_55_Callback(hObject, eventdata, handles)global  saveBij  flnSaveBij  flnSavemaxBij  flnSaveMRI[fnSavemaxBij flSavemaxBij] = uiputfile({'*.mat','Matlab file (*.mat)'},['Location and name '...    'for Bij table']);if fnSavemaxBij==0else    flnSavemaxBij = ([flSavemaxBij fnSavemaxBij]);    set(handles.Object6_32,'string', [ flnSavemaxBij ]);endfunction Object6_56_Callback(hObject, eventdata, handles)global  saveBij  flnSaveBij  flnSavemaxBij  flnSaveMRI[fnSaveMRI flSaveMRI] = uiputfile({'*.mat','Matlab file (*.mat)'},['Location and name for '...        'MRI vector']);if fnSaveMRI==0else    flnSaveMRI = ([flSaveMRI fnSaveMRI]);    set(handles.Object6_33,'string', [ flnSaveMRI ]);end% --- 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 + -