<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/244818</link>
    <title>MATLAB Central Newsreader - combining structure array</title>
    <description>Feed for thread: combining structure array</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Wed, 18 Feb 2009 17:19:01 -0500</pubDate>
      <title>combining structure array</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/244818#629199</link>
      <author>Pete sherer</author>
      <description>Hi,&lt;br&gt;
Can some one let me know how I can combine 2 structure arrays. For example,&lt;br&gt;
&lt;br&gt;
tmp1 = struct; tmp2= struct;&lt;br&gt;
tmp1.aa1 = 3;&lt;br&gt;
tmp1.aa2 = -5;&lt;br&gt;
tmp2.bb1 = 2;&lt;br&gt;
tmp2.bb2 = 6;&lt;br&gt;
&lt;br&gt;
I would like to combine tmp1 and tmp2 into tmp3 such that tmp3 has all the fields in tmp1 and tmp2, so tmp3 contains  aa1, aa2, bb1 and bb2  fields.&lt;br&gt;
&lt;br&gt;
In my application, I will have to combine many times the structure arrays.&lt;br&gt;
Thanks a lot in advance.&lt;br&gt;
Pete</description>
    </item>
    <item>
      <pubDate>Wed, 18 Feb 2009 17:50:18 -0500</pubDate>
      <title>Re: combining structure array</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/244818#629212</link>
      <author>Pete sherer</author>
      <description>I found a function &quot;CATSTRUCT&quot; by Jos; very useful!&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/matlabcentral/fileexchange/7842&quot;&gt;http://www.mathworks.com/matlabcentral/fileexchange/7842&lt;/a&gt;</description>
    </item>
  </channel>
</rss>

