📄 makelist.m
字号:
function list = MakeList(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)
% MakeList -- Make a list structure of strings/vectors
% Usage
% list = MakeList(arg1[, arg2, arg3, arg4, arg5, arg6, arg7, arg8])
% Inputs
% arg1 ... the items you want to put into a list, they can
% either be all strings, or, all vector of numbers
% Outputs
% list the list data structure
% See Also
% LengthList, NthList
%
% strings or numbers
if nargin == 1,
list = arg1;
else
list = [];
if isstr(arg1)
for i = 1:nargin,
cmmdstr = sprintf('arg%g', i);
list = [list eval(cmmdstr) ' '];
end
else
for i = 1:nargin,
cmmdstr = sprintf('arg%g', i);
list = [list eval(cmmdstr) inf];
end
end
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -