Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #7940 > unrolled thread
| Started by | Shizu <slivo.vitz@msa.hinet.net> |
|---|---|
| First post | 2012-01-17 08:53 +0000 |
| Last post | 2012-01-17 08:53 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
Re: How to remove the Null character in a Table? Shizu <slivo.vitz@msa.hinet.net> - 2012-01-17 08:53 +0000
| From | Shizu <slivo.vitz@msa.hinet.net> |
|---|---|
| Date | 2012-01-17 08:53 +0000 |
| Subject | Re: 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.
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web