4 nLeaves=length(pathSpecList);
5 valueList=cell(nLeaves,1);
7 valueList{iLeave}=getfield(SInp,pathSpecList{iLeave}{:});
15 'SInp is expected to be a structure array');
18 fieldNameList=fieldnames(SInp);
19 nFields=numel(fieldNameList);
25 pathSpecCell=cell(nElems,nFields);
28 SCur=SInp(iElem).(fieldNameList{iField});
29 if isstruct(SCur)&&~isempty(fieldnames(SCur))
30 pathSpecCell{iElem,iField}=...
33 pathSpecCell{iElem,iField}=cellfun(...
34 @(x)[{indCMat(iElem,:)},fieldNameList(iField), x],...
35 pathSpecCell{iElem,iField},...
36 'UniformOutput',
false);
39 pathSpecCell{iElem,iField}=...
40 {{indCMat(iElem,:),fieldNameList{iField}}};
44 pathList=vertcat(pathSpecCell{:});
function num2cell(in inpArray, in varargin)
NUM2CELL is an extension of Matlab built-in function "num2cell" designed to work correctly with empty...
function getleavelist(in SInp)
GETLEAVELIST generates a list of structure leave paths.
function throwerror(in msgTag, in varargin)
THROWERROR works similarly to built-in ERROR function in case when there is no output arguments but s...
function getleavelistint(in SInp)