📄 secfile.m
字号:
function filename = secfile(filelist)% tstool/secfile% filename = secfile(filelist)%% this GUI is always called when a second% filename is needed to execute a callback for tstool% the name of the selected file is returnedglobal TSTOOLdatapath;fighandle = findobj('Tag', 'TSTOOL'); % Filename ist in den UserData der TSTOOL-Figure gespeicherthandles = get(fighandle, 'UserData'); % structure with handles to the different menus/controls of the figureanswer=get(handles.loadhandle,'UserData');TSTOOLfilter=answer{1};cwd=answer{2};datafiles=get(handles.lboxhandle,'UserData');load secfile filename = '';a = figure('Color',[0.8 0.8 0.8], ... 'Colormap',mat0, ... 'Position',[697 443 483 185], ... 'Resize', 'off', ... 'MenuBar','none', ... 'NumberTitle','off', ... 'Name','Select signal file', ... 'Tag','SecondaryFileSelectBox');b = uicontrol('Parent',a, ... 'Units','points', ... 'BackgroundColor',[1 1 1], ... 'Position',[0 0 386.4 148], ... 'String', filelist, ... 'Style','listbox', ... 'Tag','Listbox1', ... 'Callback','filelist = get(gcbo, ''String''); set(gcbo, ''UserData'', filelist{get(gcbo, ''Value'')}); uiresume', ... 'Value',1);uiwaitfilename = fullfile(TSTOOLdatapath,[getlastentry(datafiles,get(b, 'Value')) TSTOOLfilter]);close(gcf)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -