📄 structrows.m
字号:
function S = structrows(L,in)
% STRUCTROWS Selects rows of a table from XLS2STRUCT
%
% S = STRUCTROWS(L,IN) selects the rows in IN from the structure L and
% outputs them in the structure S.
f = fieldnames(L);
for i = 1:length(f)
v = L.(f{i});
S.(f{i}) = v(in);
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -