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

📄 page_four.m

📁 关于高层建筑强风条件下风压系数计算
💻 M
字号:
function varargout = Page_Four(varargin)global  flnMass  DL  SDL  LLglobal  flnDLr  flnSDLr  flnLLr  frames_DL  frames_SDL  frames_LL global  DLf  SDLf  LLf  WLf% Much of this content is automatically generated by the 'guide' template.% The callbacks for objects from Page_Four.fig in the 'guide' template are called here.% The variables affected by a particular callback function are listed just below as%      global variables.%% PAGE_FOUR M-file for Page_Four.fig%      PAGE_FOUR, by itself, creates a new PAGE_FOUR or raises the existing%      singleton*.%%      H = PAGE_FOUR returns the handle to a new PAGE_FOUR or the handle to%      the existing singleton*.%%      PAGE_FOUR('Property','Value',...) creates a new PAGE_FOUR using the%      given property value pairs. Unrecognized properties are passed via%      varargin to Page_Four_OpeningFcn.  This calling syntax produces a%      warning when there is an existing singleton*.%%      PAGE_FOUR('CALLBACK') and PAGE_FOUR('CALLBACK',hObject,...) call the%      local function named CALLBACK in PAGE_FOUR.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_Four% Last Modified by GUIDE v2.5 13-Sep-2005 15:16:16% Begin initialization code - DO NOT EDITgui_Singleton = 1;gui_State = struct('gui_Name',       mfilename, ...                   'gui_Singleton',  gui_Singleton, ...                   'gui_OpeningFcn', @Page_Four_OpeningFcn, ...                   'gui_OutputFcn',  @Page_Four_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_Four is made visible.function Page_Four_OpeningFcn(hObject, eventdata, handles, varargin)global  flnMass  DL  SDL  LLglobal  flnDLr  flnSDLr  flnLLr  frames_DL  frames_SDL  frames_LL global  DLf  SDLf  LLf  WLfhandles.output = hObject;guidata(hObject, handles);set(handles.Object4_30,'String', flnMass )set(handles.Object4_32,'String', flnDLr )set(handles.Object4_33,'String', flnSDLr )set(handles.Object4_34,'String', flnLLr )set(handles.Object4_35,'String', num2str(DLf) )set(handles.Object4_36,'String', num2str(SDLf) )set(handles.Object4_37,'String', num2str(LLf) )set(handles.Object4_38,'String', num2str(WLf) )%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% --- Outputs from this function are returned to the command line.function varargout = Page_Four_OutputFcn(hObject, eventdata, handles)varargout{1} = handles.output;%%%%%%%%%%%%%%%%%  FUNCTIONS  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%function axesA_CreateFcn(hObject, eventdata, handles)     % Must Stay!!function Object4_35_Callback(hObject, eventdata, handles)global  DLfDLf_str     = get(handles.Object4_35,'string');DLf         = str2num(DLf_str);                % Load factor - Dead load (DL)function Object4_36_Callback(hObject, eventdata, handles)global  SDLfSDLf_str    = get(handles.Object4_36,'string');SDLf        = str2num(SDLf_str);               % Load factor - Superimposed Dead load (SDL)function Object4_37_Callback(hObject, eventdata, handles)global  LLfLLf_str     = get(handles.Object4_37,'string');LLf         = str2num(LLf_str);                % Load factor - Live load (DL)function Object4_38_Callback(hObject, eventdata, handles)global  WLfWLf_str     = get(handles.Object4_38,'string');WLf         = str2num(WLf_str);                % Load factor - Wind load (DL)function Object4_50_Callback(hObject, eventdata, handles)g=figure;set(g,'units','normalized','position',[0.35 0.26 0.58 0.39],'menubar','none','numbertitle',...    'off','resize','off');Four_text=uicontrol(g,'Style','text','Units','Normalized','Position',[0.01 0.01 0.99 0.99],...    'String',[char(10) 'Mass Matrix' char(10) char(10) 'Variable name:  mass' char(10) ...    'Variable size: 1 x Ndofs' char(10) char(10) 'Description: Open the file that contains '...    'the vector of the floor masses and mass moments of inertia. The terms within the '...    'vector are arranged as follows for Fdofs=3:' char(10) 'Entry 1 = floor 1, d.o.f. 1'...     char(10) 'Entry 2 = floor 1, d.o.f. 2 ' char(10) 'Entry 3 = floor 1, d.o.f. 3' char(10)...    'Entry 4 = floor 2, d.o.f. 1' char(10) 'etc.' char(10) 'The mass vector should include '...    'the selfweight of the structure and all numbers should be positive.' char(10) 'Assure '...    'proper units.'], 'FontName','Garamond','FontSize',12);function Object4_51_Callback(hObject, eventdata, handles)g=figure;set(g,'units','normalized','position',[0.45 0.15 0.40 0.48],'menubar','none','numbertitle',...    'off','resize','off');Four_text=uicontrol(g,'Style','text','Units','Normalized','Position',[0.01 0.01 0.99 0.99],...    'String',['Internal Forces due to Gravity Loads' char(10) char(10) 'Variable names: '...    'frames_DL, frames_SDL, and frames_LL ' char(10) 'Variable size: length(mem_list) x 4' ...     char(10) char(10) 'Description: Open the file that contains internal forces in '...    'members specified in ''mem_list'', induced by applied unfactored gravity loads '...    '(including selfweight). The internal forced are obtained by using separate structural '...    'analysis software.' char(10) 'The first column contains all member numbers.' char(10)...    'IMPORTANT: The order of member numbers must match the order in the ''props'' matrix '...    'and the order in the ''mem_list'' matrix, both of Page 3.' char(10) char(10) 'The '...    'remaining columns contain the following internal forces:' char(10) '2) axial force '...    '(P)' char(10) '3) bending moment about local axis 2 (M2)' char(10) '4) bending moment '...    'about local axis 3 (M3)' char(10) 'Assure proper units.'],'FontName','Garamond',...    'FontSize',12);function Object4_52_Callback(hObject, eventdata, handles)g=figure;set(g,'units','normalized','position',[0.40 0.40 0.53 0.27],'menubar','none','numbertitle',...    'off','resize','off');Four_text=uicontrol(g,'Style','text','Units','Normalized','Position',[0.01 0.01 0.99 0.99],...    'String',[char(10) 'Load Factors for Dynamic Model' char(10) char(10) 'Variable names: '...    'DLf, SDLf, LLf and WLf' char(10) 'Variable sizes: 1 x 1' char(10) char(10)...    'Description: Load factors are applied to the time histories of the internal forces '...    'and to time histories of the calculated wind loads used to calculate the wind effects.'...     char(10) char(10) 'For example, P(t), M2(t), M3(t) in the dynamic analysis are '...    'functions of DL, LL, and WL multiplied by their respective load factor.'],'FontName',...    'Garamond','FontSize',12);function Object4_53_Callback(hObject, eventdata, handles)global  flnMass  DL  SDL  LLglobal  flnDLr  flnSDLr  flnLLr  frames_DL  frames_SDL  frames_LL global  DLf  SDLf  LLf  WLf[fnMass flMass] = uigetfile({'*.mat','Matlab file (*.mat)'},['Select file containing '...        '''mass'' (1 x Ndofs).'], flnMass);if fnMass==0    load ([ flnMass ]);else    flnMass = fullfile( flMass , fnMass );    load ([ flnMass ]);endset(handles.Object4_30,'string', [ flnMass ]);function Object4_54_Callback(hObject, eventdata, handles)global  flnMass  DL  SDL  LLglobal  flnDLr  flnSDLr  flnLLr  frames_DL  frames_SDL  frames_LL global  DLf  SDLf  LLf  WLf[fnDLr flDLr] = uigetfile({'*.mat','Matlab file (*.mat)'},['Select file containing '...        '''frames_DL'' (length(mem_list) x 4).'], flnDLr);if fnDLr==0    load ([ flnDLr ]);else    flnDLr = fullfile( flDLr , fnDLr );    load ([ flnDLr ]);endset(handles.Object4_32,'string', [ flnDLr ]);function Object4_55_Callback(hObject, eventdata, handles)global  flnMass  DL  SDL  LLglobal  flnDLr  flnSDLr  flnLLr  frames_DL  frames_SDL  frames_LL global  DLf  SDLf  LLf  WLf[fnSDLr flSDLr] = uigetfile({'*.mat','Matlab file (*.mat)'},['Select file containing '...        '''frames_SDL'' (length(mem_list) x 4).'], flnSDLr);if fnSDLr==0    load ([ flnSDLr ]);else    flnSDLr = fullfile( flSDLr , fnSDLr );    load ([ flnSDLr ]);endset(handles.Object4_33,'string', [ flnSDLr ]);function Object4_56_Callback(hObject, eventdata, handles)global  flnMass  DL  SDL  LLglobal  flnDLr  flnSDLr  flnLLr  frames_DL  frames_SDL  frames_LL global  DLf  SDLf  LLf  WLf[fnLLr flLLr] = uigetfile({'*.mat','Matlab file (*.mat)'},['Select file containing '...    '''frames_LL'' (length(mem_list) x 4).'], flnLLr);if fnLLr==0    load ([ flnLLr ]);else    flnLLr = fullfile( flLLr , fnLLr );    load ([ flnLLr ]);endset(handles.Object4_34,'string', [ flnLLr ]); % --- 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 + -