MathGroup Archive 2013

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

Search the Archive

Re: ReplacePart


On 9/14/2013 5:00 AM, man21 wrote:
> Hello,
>
> As a result of a calculation, I end up with a list of numerical values
> which contains  some "Indeterminate".
>
> x ={-1.25664, 0.628319, -0.628319, 1.25664, Indeterminate, -1.25664,
> 0.628319, -0.628319, 1.25664, Indeterminate}
>
> I try to replace the "Indeterminate" by "0", using :
>
> ReplacePart[x, {5, 10} -> 0.]
>
> but this dosen't work. Any idea why, and how to do it ?
>

Need to use this syntax:

ReplacePart[x, {{5}, {10}} -> 0.]

--Nasser




  • Prev by Date: Re: Finding a function within an arbitrary expression
  • Next by Date: Re: ReplacePart
  • Previous by thread: Re: ReplacePart
  • Next by thread: Re: ReplacePart