Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #15450
| From | "Nasser M. Abbasi" <nma@12000.org> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: ReplacePart |
| Date | 2013-09-15 11:02 +0000 |
| Message-ID | <l1444i$psf$1@smc.vnet.net> (permalink) |
| References | <l11c49$ivr$1@smc.vnet.net> |
| Organization | Time-Warner Telecom |
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
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread
ReplacePart man21 <man21@free.fr> - 2013-09-14 10:00 +0000 Re: ReplacePart "Dr. Wolfgang Hintze" <weh@snafu.de> - 2013-09-15 10:59 +0000 Re: ReplacePart "Nasser M. Abbasi" <nma@12000.org> - 2013-09-15 11:02 +0000
csiph-web