Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Joint Histogram

  • To: mathgroup at smc.vnet.net
  • Subject: [mg81147] Re: Joint Histogram
  • From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
  • Date: Fri, 14 Sep 2007 03:31:17 -0400 (EDT)
  • Organization: The Open University, Milton Keynes, UK
  • References: <fcb3gv$fg5$1@smc.vnet.net>

cimon wrote:

> I am completely new to Mathematica
> and trying to work with images in it.
> 
> I am trying to create a joint histogram out of an image taking its red
> and green channel.
> I get this error
> 
> Table::iterb: Iterator (i,1,ydim),  does not have appropriate bounds.
> Table::iterb: Iterator (i,1,ydim),  does not have appropriate bounds.
> 
> (see in code below)
> 
> When I have just written the first five lines and i try to execute. i
> dont get this error.
> But when I have written the for loop and than i try to execute than I
> get this error.
> 
> 
> I am just not able to fix this out.
> can somebody plese guide me with this.
> -------------------------------------------------------------------------
> penny = Import["c:\penny.ppm"];
> Shallow[penny];
> data = penny[[1, 1]];
> 
> ydim = Dimensions[data][[1]];
> xdim = Dimensions[data][[2]];

Note that the expression that contains the code with *Table* is missing 
in your post.

> Table::iterb: Iterator (i,1,ydim),  does not have appropriate bounds.
> Table::iterb: Iterator (i,1,ydim),  does not have appropriate bounds.

Nevertheless, looking at the above message, I believe that you have used 
regular parentheses () rather than /curly brackets/ {}. Try {i, 1, ydim} 
as iterator.

<snip>

HTH,
-- 
Jean-Marc


  • Prev by Date: Re: Distinguishing Strings from Symbols
  • Next by Date: Re: Problem with FrameTicks and BarLabels
  • Previous by thread: Joint Histogram
  • Next by thread: Re: Joint Histogram