MathGroup Archive 1999

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

Search the Archive

Re: How can I plot for array variable?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg16092] Re: How can I plot for array variable?
  • From: dreiss at !SPAMscientificarts.com (David Reiss)
  • Date: Thu, 25 Feb 1999 08:24:54 -0500
  • Organization: EarthLink Network, Inc.
  • References: <7atpnp$7f3@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

In article <7atpnp$7f3 at smc.vnet.net>, "Kwon, Rak-Beom" <roffkr at ns.knm.net>
wrote:

> I'm sorry.
> How can I plot Dream variable in Mathemetica?
> 
> Dream[1]=0.25
> Dream[2]=0.0790569
> Dream[3]=0.025
> Dream[4]=0.00790569
> Dream[5]=0.0025
> Dream[6]=0.000790569
> Dream[7]=0.00025
> Dream[8]=0.0000790569



This defines the values for your Dream function:


In[1]:=
Dream[1]=0.25;
Dream[2]=0.0790569;
Dream[3]=0.025;
Dream[4]=0.00790569;
Dream[5]=0.0025;
Dream[6]=0.000790569;
Dream[7]=0.00025;
Dream[8]=0.0000790569;


Now make a list that contains the Dream values:


In[2]:= DreamList=Table[Dream[i],{i,1,8}]

Out[2]=
{0.25,0.0790569,0.025,0.00790569,0.0025,0.000790569,0.00025,0.0000790569}


You can now use ListPlot to plot the result. Use the Option
PlotJoined->True to connect the points. If you do not want the points
connected then leave this option out.


In[3]:= ListPlot[DreamList,PlotJoined->True]


You can also combine the whole process together as in the following:


In[4]:= ListPlot[Table[Dream[i],{i,1,8}],PlotJoined->True]

-- 


   
----------------------------------------
 
Scientific Arts:
Creative Services and Consultation 
for the Applied and Pure Sciences 

David Reiss 
Email: dreiss at !SPAMscientificarts.com 

----------------------------------------
 


Remove the !SPAM to send email


  • Prev by Date: Re: How can I plot for array variable?
  • Next by Date: Q: meaning of 'order n' of a regular tessellation?
  • Previous by thread: Re: How can I plot for array variable?
  • Next by thread: Re: How can I plot for array variable?