Artifact b7b88d71133f45569a349944645945d82e0ee986fac4e6a2eed044cca01f23c4:
- File
mttroot/ntt/bin/trans/mttAppendFields.m
— part of check-in
[745f0b3e31]
at
2003-10-20 17:10:30
on branch origin/master
— Added initial revision of ntt:
new transformation tools for using bond graphs with Matlab.
Copyright 2003 Dr. Dominic J. Diston. (user: geraint@users.sourceforge.net, size: 465) [annotate] [blame] [check-ins using] [more...] - File ntt/bin/trans/mttAppendFields.m — part of check-in [af3953deae] at 2021-03-01 11:39:42 on branch master — Cleanup repository after cvs2git conversion. (user: jeff@gridfinity.com, size: 465) [annotate] [blame] [check-ins using]
function information = mttAppendFields(information,extra) if isstruct(information) & isstruct(extra) information_fields = fieldnames(information) ; extra_fields = fieldnames(extra) ; for i = 1:length(extra_fields) field_name = extra_fields{i} ; extra_field = getfield(extra,field_name) ; information = setfield(information,field_name,extra_field) ; end end