Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #7940
| From | Shizu <slivo.vitz@msa.hinet.net> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: How to remove the Null character in a Table? |
| Date | 2012-01-17 08:53 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jf3ctj$nri$1@smc.vnet.net> (permalink) |
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 comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: How to remove the Null character in a Table? Shizu <slivo.vitz@msa.hinet.net> - 2012-01-17 08:53 +0000
csiph-web