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

MathGroup Archive 2006

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

Search the Archive

Re: plotting multidimensional arrays

  • To: mathgroup at smc.vnet.net
  • Subject: [mg69588] Re: [mg69547] plotting multidimensional arrays
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Sat, 16 Sep 2006 03:50:33 -0400 (EDT)
  • Reply-to: hanlonr at cox.net

cc=Table[0,{i,5},{j,5}];

cc[[1,2]]=20;

However, if you have a list of numbers, just partition the list to form an array.


Bob Hanlon

---- mickey <micky at hotmail.com> wrote: 
> Hi,
> 
> I have a list of numbers,
> cc(1,2)=20
> cc(1,3)=45
> 
> and so on. I would like to plot it as a 3 dimensional plot, with the 
> index as x and y and the value as the z value but I am having trouble 
> doing that. Here is what I was trying. I create the array first,
> 
> cc=Table[0,{i,500},{j,500}];
> 
> This works fine. Then I assign the values for the elements.
> 
> cc[[1]][[2]]=20;
> 
> But here I get an error.
> 
> What am I doing wrong?
> 
> THanks,
> -M
> 

--

Bob Hanlon
hanlonr at cox.net



  • Prev by Date: Variables Within Homemade Functions
  • Next by Date: Re: Re: Result changing
  • Previous by thread: RE: plotting multidimensional arrays
  • Next by thread: Re: plotting multidimensional arrays