ooDACE toolbox  1.4
 All Classes Files Functions Variables Pages
Functions
mergeStruct.m File Reference

Functions

function mergeStruct (var s1, var s2, var destFieldExist)
 Copies field of s2 over to s1.
 

Detailed Description

Authors
Ivo Couckuyt
Version
1.4 ($Revision$)
Date
$LastChangedDate$
Copyright 2010-2013

This file is part of the ooDACE toolbox and you can redistribute it and/or modify it under the terms of the GNU Affero General Public License version 3 as published by the Free Software Foundation. With the additional provision that a commercial license must be purchased if the ooDACE toolbox is used, modified, or extended in a commercial setting. For details see the included LICENSE.txt file. When referring to the ooDACE toolbox please make reference to the corresponding publications:

Contact : ivo.c.nosp@m.ouck.nosp@m.uyt@u.nosp@m.gent.nosp@m..be - http://sumo.intec.ugent.be/?q=ooDACE Signature o = mergeStruct( s1, s2, destFieldExist )

Function Documentation

function mergeStruct ( var  s1,
var  s2,
var  destFieldExist 
)

Copies field of s2 over to s1.

Parameters
s1destination structure
s2source structure
destFieldExist
  • -1: always copy
  • false: only copy when destination field does NOT exist
  • true: only copy when destination field exist