<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/170319</link>
    <title>MATLAB Central Newsreader - Get one dimension of a cell array</title>
    <description>Feed for thread: Get one dimension of a cell 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>Mon, 02 Jun 2008 13:36:01 -0400</pubDate>
      <title>Get one dimension of a cell array</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/170319#435418</link>
      <author>David Doria</author>
      <description>I have this&lt;br&gt;
&lt;br&gt;
A{dim1, dim2, dim3};&lt;br&gt;
&lt;br&gt;
I want to do:&lt;br&gt;
&lt;br&gt;
B = A{1,1,:}; %make B a 1D cell array containing all the&lt;br&gt;
items in A with first index 1 and second index 1.&lt;br&gt;
&lt;br&gt;
What happens though is just A{1,1,1} is assigned to B.  Is&lt;br&gt;
there a way to do this?&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
&lt;br&gt;
Dave</description>
    </item>
    <item>
      <pubDate>Mon, 02 Jun 2008 13:55:34 -0400</pubDate>
      <title>Re: Get one dimension of a cell array</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/170319#435428</link>
      <author>Devdatt Lad</author>
      <description>&quot;David Doria&quot; wrote...&lt;br&gt;
&amp;gt;I have this&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; A{dim1, dim2, dim3};&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I want to do:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; B = A{1,1,:}; %make B a 1D cell array containing all the&lt;br&gt;
&amp;gt; items in A with first index 1 and second index 1.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; What happens though is just A{1,1,1} is assigned to B.  Is&lt;br&gt;
&amp;gt; there a way to do this?&lt;br&gt;
&lt;br&gt;
B = squeeze(A(1,1,:))&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Devdatt Lad&lt;br&gt;
The MathWorks, Inc.</description>
    </item>
  </channel>
</rss>

