copyStructFields

PURPOSE ^

copies a list of fields from a source to a target structure

SYNOPSIS ^

function target = copyStructFields(src,target,fieldsSrc)

DESCRIPTION ^

copies a list of fields from a source to a target structure

fields -> cell array of strings. entries in the cell array can also be an other cell array
with two string entries: src and target. (to rename fields).

i.e. fieldsSrc = {'a1',{'a2','a3'}, {'from','to'})

will copy target.a1=src1 and target.a3=src2.


urut/may07

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Wed 03-Oct-2007 12:29:38 by m2html © 2003