Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #15437 > unrolled thread
| Started by | Sseziwa Mukasa <mukasa@gmail.com> |
|---|---|
| First post | 2013-09-15 10:55 +0000 |
| Last post | 2013-09-15 10:55 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: ReplacePart Sseziwa Mukasa <mukasa@gmail.com> - 2013-09-15 10:55 +0000
| From | Sseziwa Mukasa <mukasa@gmail.com> |
|---|---|
| Date | 2013-09-15 10:55 +0000 |
| Subject | Re: ReplacePart |
| Message-ID | <l143mk$pp3$1@smc.vnet.net> |
ReplacePart doesn't modify its arguments, assign the result back to x.
x=ReplacePart[x, {5, 10} -> 0.]
On Saturday, September 14, 2013, 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 ?
>
> Thanks,
>
> Michel
>
>
>
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web