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


Groups > comp.soft-sys.math.mathematica > #7940 > unrolled thread

Re: How to remove the Null character in a Table?

Started byShizu <slivo.vitz@msa.hinet.net>
First post2012-01-17 08:53 +0000
Last post2012-01-17 08:53 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Re: How to remove the Null character in a Table? Shizu <slivo.vitz@msa.hinet.net> - 2012-01-17 08:53 +0000

#7940 — Re: How to remove the Null character in a Table?

FromShizu <slivo.vitz@msa.hinet.net>
Date2012-01-17 08:53 +0000
SubjectRe: How to remove the Null character in a Table?
Message-ID<jf3ctj$nri$1@smc.vnet.net>
You'd better write your expression in this way:

In[]:= t = Table[If[i < 3, i, Null], {i, 5}]
Out:= {1, 2, Null, Null, Null}

In[]:= Cases[t, _Integer]
Out[]:= {1, 2}

If you leave out the false part of If[], it's a syntax error.

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web