📄 page_open.m
字号:
function varargout = Page_Open(varargin)global textA axesA_text textB axesB_text input_coords pos_on pos_off% PAGE_OPEN M-file for Page_Open.fig% PAGE_OPEN, by itself, creates a new PAGE_OPEN or raises the existing% singleton*.%% H = PAGE_OPEN returns the handle to a new PAGE_OPEN or the handle to% the existing singleton*.%% PAGE_OPEN('Property','Value',...) creates a new PAGE_OPEN using the% given property value pairs. Unrecognized properties are passed via% varargin to Page_Open_OpeningFcn. This calling syntax produces a% warning when there is an existing singleton*.%% PAGE_OPEN('CALLBACK') and PAGE_OPEN('CALLBACK',hObject,...) call the% local function named CALLBACK in PAGE_OPEN.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_Open% Last Modified by GUIDE v2.5 01-Oct-2004 14:32:31% Begin initialization code - DO NOT EDITgui_Singleton = 1;gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singleton, ... 'gui_OpeningFcn', @Page_Open_OpeningFcn, ... 'gui_OutputFcn', @Page_Open_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_Open is made visible.function Page_Open_OpeningFcn(hObject, eventdata, handles, varargin)global axesA_textpos_on = get(handles.axesA,'position');pos_off = [0.99 0.01 0.01 0.01];input_coords = [1.4*pos_on(1) 1.1*pos_on(2) 0.8*pos_on(3) 0.9*pos_on(4)];fig=findobj('Tag','Page_Open_Fig');textA = uicontrol(fig,'style','text','units','normalized','FontSize',16,'FontName',... 'Garamond','position', input_coords, 'tag','text_area','string',axesA_text);handles.output = hObject;guidata(hObject, handles);%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% --- Outputs from this function are returned to the command line.function varargout = Page_Open_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 structurevarargout{1} = handles.output;% --- 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 + -