MathGroup Archive 2007

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

Search the Archive

Re: Array reference help please


Looking better is fairly subjective!
For readability, I prefer the looks of this:

{datax,datay} = Transpose[data =Table[Random[],{40},{2}]]
li = Length[datax]
Plot[
   Evaluate[
       Sum[datax[[i]], etc...

over this

Plot[
   Evaluate[
      Sum[data[[i,1]] etc

>
> (* first parameter is pulse amplitude, second is time of
> occurrence - later to follow Poisson *)
>
> data=Table[Random[],{40},{2}];
>
> li=Length[data];
>
> Plot[Sum[
>         Part[data[[i]],1]  UnitStep[t-Part[data[[i]],2]]
>         Exp[-=CE=B1 (t-Part[data[[i]],2])],  {i,li}
>         ]
>   ,{t,0,1}]
>
>


  • Prev by Date: Curve-fitting/data analysis question...
  • Next by Date: free boundary condition
  • Previous by thread: Array reference help please
  • Next by thread: Re: Array reference help please