Code covered by the BSD License  

Highlights from
Mia 2.4

image thumbnail

Mia 2.4

by

 

02 Apr 2004 (Updated )

Medical Image Analysis GUI.

structrows(L,in)
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

Contact us