rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
Functions
structcpy.m File Reference

copies the fields of structure s2 into structure s1. If the field to be copied does not exist in s1 yet, a field with the appropriate name is created. More...

Go to the source code of this file.

Functions

function s1 = structcpy (s1, s2)
 copies the fields of structure s2 into structure s1. If the field to be copied does not exist in s1 yet, a field with the appropriate name is created. More...
 

Detailed Description

copies the fields of structure s2 into structure s1. If the field to be copied does not exist in s1 yet, a field with the appropriate name is created.

Definition in file structcpy.m.

Function Documentation

function s1 = structcpy (   s1,
  s2 
)

copies the fields of structure s2 into structure s1. If the field to be copied does not exist in s1 yet, a field with the appropriate name is created.

Parameters
s1s1
s2s2
Return values
s1s1

Definition at line 17 of file structcpy.m.

Here is the caller graph for this function: