📄 main_time.m
字号:
% Script : create a Graphic Interface for time modification
%
%
% modified by D. G. Childers 1/98
%
% Changes made to make the code compatible with MATLAB5
% All figures specified in pixels rather than normalized units
close all;
clear;
clc;
%path(path,'.\analysis');
%path(path,'.\data');
%path(path,'.\modify_anal');
%path(path,'.\seg_label');
%path(path,'.\temp');
%path(path,'.\time_mod');
%path(path,'.\utilities');
path('.\analysis',path);
path('.\data',path);
path('.\modify_anal',path);
path('.\seg_label',path);
path('.\temp',path);
path('.\time_mod',path);
path('.\utilities',path);
genflag = 0; %Flags that indicate whether the corresponding analysis was done
srcflag = 0;
frmflag = 0;
Srate = 10000; %Unless changed, this is the fixed value for sampling rate
% Define some character strings
o_fname='';
o_pname='';
% Define some global variables
global Ts; %Sampling period in seconds
Ts = 1e-4;
%color_flag=0; % Black background and white text
color_flag=1; % White background and black text
global BACK_COLOR TEXT_COLOR LINE_COLOR;
if color_flag == 1
BACK_COLOR=[1 1 1]; %white
TEXT_COLOR=[0 0 0]; %black
LINE_COLOR=[0 0 1]; %blue
else
BACK_COLOR=[0 0 0];
TEXT_COLOR=[1 1 1];
LINE_COLOR=[0 0 1];
end
check = 1; %Variable used for proper closing and opening of windows
catch2 = 'check = 0;';
catch1 = 'break;';
PV = [40 354 170 176];
s2 = 'Main Functions Window';
main_figure=figure('Position',PV,...
'Numbertitle','off',...
'color',BACK_COLOR,...
'Name',s2);
%Pushbuttons with user interface controls
uicontrol('Style','Pushbutton',...
'Position',[10 140 145 30],...
'String','Analysis',...
'CallBack','A1');
uicontrol('Style','Pushbutton',...
'Position',[10 100 145 30],...
'String','Modify',...
'CallBack','m2');
uicontrol('Style','Pushbutton',...
'Position',[10 60 145 30],...
'String','Time modification & synthesis',...
'Callback','m1');
uicontrol('Style','Pushbutton',...
'Position',[10 20 145 30],...
'String','Quit',...
'Callback','close_main_time');
clc;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -