📄 batch_plsgui.m
字号:
function batch_plsgui(varargin)
if nargin < 1
error('Usage: batch_plsgui(batch_text_file_name(s))');
end
for i = 1:nargin
batch_file = varargin{i};
fid = fopen(batch_file);
tmp = fgetl(fid);
if ischar(tmp) & ~isempty(tmp)
tmp = strrep(tmp, char(9), ' ');
tmp = deblank(fliplr(deblank(fliplr(tmp))));
end
while ~feof(fid) & (isempty(tmp) | isnumeric(tmp) | strcmpi(tmp(1), '%'))
tmp = fgetl(fid);
if ischar(tmp) & ~isempty(tmp)
tmp = strrep(tmp, char(9), ' ');
tmp = deblank(fliplr(deblank(fliplr(tmp))));
end
end
fseek(fid, 0, 'bof');
if ischar(tmp) & ~isempty(tmp)
tok = strtok(tmp);
else
tok = '';
end
if strcmpi(tok, 'result_file')
batch_pls_analysis(fid);
else
batch_create_datamat(fid);
end
end
return; % batch_plsgui
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -