MathGroup Archive 2011

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

Search the Archive

Re: Hi

  • To: mathgroup at smc.vnet.net
  • Subject: [mg116236] Re: Hi
  • From: Tomas Garza <tgarza10 at msn.com>
  • Date: Tue, 8 Feb 2011 05:04:26 -0500 (EST)

I guess this is what you want:
a=Table[{Sin[j], j},{j,0,Pi,Pi/100}];
But if you want e.g. to plot your points, I think it would more natural to use
a=Table[{j, Sin[j]},{j,0,Pi,Pi/100}]; ListPlot[a]
That is, you want to invert the order in each row:
a /. {x_, y_} -> {y, x}
-Tomas
> Date: Mon, 7 Feb 2011 06:05:41 -0500
> From: isableng at gmail.com
> Subject: [mg116221] Hi
> To: mathgroup at smc.vnet.net
>
> Hi I have a problem.
> I created a column vector of 100 rows, let's say a[100,1]. Each row
> corresponds to the value of my function in each unit of time. I would like
> to plot this vector. I should get a function that has a value a(1,1) at time
> 1, a(2,1) at time 2 and so on...
> Any suggestions???
>
> Many thanks,
>
> isabella
>
>
 		 	   		 


  • Prev by Date: Re: How do I hide all input in a Mathematica notebook?
  • Next by Date: Re: Help with Delete cases
  • Previous by thread: Re: Hi
  • Next by thread: Re: Hi