Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #15731 > unrolled thread
| Started by | Tomas Garza <tgarza10@msn.com> |
|---|---|
| First post | 2011-02-08 10:04 +0000 |
| Last post | 2011-02-08 10:04 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
Re: Hi Tomas Garza <tgarza10@msn.com> - 2011-02-08 10:04 +0000
| From | Tomas Garza <tgarza10@msn.com> |
|---|---|
| Date | 2011-02-08 10:04 +0000 |
| Subject | Re: Hi |
| Message-ID | <iir4f5$6hr$1@smc.vnet.net> |
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@gmail.com
> Subject: Hi
> To: mathgroup@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
>
>
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web