Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #15433

ReplacePart

From man21 <man21@free.fr>
Newsgroups comp.soft-sys.math.mathematica
Subject ReplacePart
Date 2013-09-14 10:00 +0000
Message-ID <l11c49$ivr$1@smc.vnet.net> (permalink)
Organization Time-Warner Telecom

Show all headers | View raw


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 comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread


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