<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/153718</link>
    <title>MATLAB Central Newsreader - Subscript indices are real integers but getting error saying they are not?</title>
    <description>Feed for thread: Subscript indices are real integers but getting error saying they are not?</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2008 by The 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>The MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Tue, 31 Jul 2007 15:20:36 -0400</pubDate>
      <title>Subscript indices are real integers but getting error saying they are not?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/153718#385700</link>
      <author>Colm </author>
      <description>Hi,&lt;br&gt;
&lt;br&gt;
I have been scratching my head about this one and a look through the other posts hasn't helped so I thought someone might be able to help. I have an m-file in which I form a 4-d double array (11x11x12x26) of sea surface temps (sst) and I want to get the means along the 3rd dimension, so I have a line&lt;br&gt;
&lt;br&gt;
avg_sst =  mean(month_array,3)&lt;br&gt;
&lt;br&gt;
which gave the error:&lt;br&gt;
&lt;br&gt;
"Subscript indices must either be real positive integers or logicals"&lt;br&gt;
&lt;br&gt;
so I tried using for loops and reshaping the array, etc but always got the same error.&lt;br&gt;
&lt;br&gt;
Can anyone help?&lt;br&gt;
&lt;br&gt;
Thanks, &lt;br&gt;
&lt;br&gt;
Colm&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Tue, 31 Jul 2007 15:28:20 -0400</pubDate>
      <title>Re: Subscript indices are real integers but getting error saying they are not?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/153718#385701</link>
      <author>us</author>
      <description>Colm&lt;br&gt;
&amp;lt;SNIP function-is-var evergreen...&lt;br&gt;
&lt;br&gt;
one of the (likely) solutions&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;x=1:5;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;clear mean;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;mean(x)&lt;br&gt;
&lt;br&gt;
us&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Tue, 31 Jul 2007 15:40:40 -0400</pubDate>
      <title>Re: Subscript indices are real integers but getting error saying they are not?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/153718#385703</link>
      <author>Colm </author>
      <description>"us " &amp;lt;us@neurol.unizh.ch&amp;gt; wrote in message &amp;lt;f8nkek$ghn$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Colm&lt;br&gt;
&amp;gt; &amp;lt;SNIP function-is-var evergreen...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; one of the (likely) solutions&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt;      x=1:5;&lt;br&gt;
&amp;gt;      clear mean;&lt;br&gt;
&amp;gt;      mean(x)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; us&lt;br&gt;
&lt;br&gt;
I'm sorry. I don't understand what you mean.&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Tue, 31 Jul 2007 16:19:17 -0400</pubDate>
      <title>Re: Subscript indices are real integers but getting error saying they are not?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/153718#385712</link>
      <author>roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)</author>
      <description>In article &amp;lt;f8nl5o$1be$1@fred.mathworks.com&amp;gt;,&lt;br&gt;
Colm  &amp;lt;c.oshea4@nuigalway.ie&amp;gt; wrote:&lt;br&gt;
&amp;gt;"us " &amp;lt;us@neurol.unizh.ch&amp;gt; wrote in message &amp;lt;f8nkek$ghn$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt;&amp;gt; &amp;lt;SNIP function-is-var evergreen...&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; one of the (likely) solutions&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt;      x=1:5;&lt;br&gt;
&amp;gt;&amp;gt;      clear mean;&lt;br&gt;
&amp;gt;&amp;gt;      mean(x)&lt;br&gt;
&lt;br&gt;
&amp;gt;I'm sorry. I don't understand what you mean.&lt;br&gt;
&lt;br&gt;
He means that likely you have a variable named 'mean' that that&lt;br&gt;
that is interfering with your use of the function named 'mean'.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
&amp;nbsp;&amp;nbsp;Is there any thing whereof it may be said, See, this is new? It hath&lt;br&gt;
&amp;nbsp;&amp;nbsp;been already of old time, which was before us.       -- Ecclesiastes&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Tue, 31 Jul 2007 16:25:07 -0400</pubDate>
      <title>Re: Subscript indices are real integers but getting error saying they are not?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/153718#385713</link>
      <author>us</author>
      <description>Walter Roberson&lt;br&gt;
&amp;lt;SNIP another definition of &amp;lt;evergreen&amp;gt;...&lt;br&gt;
***&lt;br&gt;
Is there any thing whereof it may be said, See, this is new? It hath  been already of old time, which was before us. [Ecclesiastes]&lt;br&gt;
***&lt;br&gt;
&lt;br&gt;
&amp;gt; He means that likely you have a variable named 'mean' that is interfering with your use of the function named 'mean'...&lt;br&gt;
&lt;br&gt;
thank you &amp;lt;walter&amp;gt; for clarification&lt;br&gt;
:-)&lt;br&gt;
us&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Wed, 01 Aug 2007 11:34:36 -0400</pubDate>
      <title>Re: Subscript indices are real integers but getting error saying they are not?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/153718#385867</link>
      <author>Colm </author>
      <description>"us " &amp;lt;us@neurol.unizh.ch&amp;gt; wrote in message &amp;lt;f8nnp3$ljr$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Walter Roberson&lt;br&gt;
&amp;gt; &amp;lt;SNIP another definition of &amp;lt;evergreen&amp;gt;...&lt;br&gt;
&amp;gt; ***&lt;br&gt;
&amp;gt; Is there any thing whereof it may be said, See, this is new? It hath  been already of old time, which was before us. [Ecclesiastes]&lt;br&gt;
&amp;gt; ***&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; He means that likely you have a variable named 'mean' that is interfering with your use of the function named 'mean'...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; thank you &amp;lt;walter&amp;gt; for clarification&lt;br&gt;
&amp;gt; :-)&lt;br&gt;
&amp;gt; us&lt;br&gt;
&lt;br&gt;
That was it. Thanks for your help. (I feel like an idiot for not picking that one up!)&lt;br&gt;
</description>
    </item>
  </channel>
</rss>
