Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #7898
| From | "Scot T. Martin" <smartin@seas.harvard.edu> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: How to remove the Null character in a Table? |
| Date | 2012-01-17 08:33 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jf3bp8$nbr$1@smc.vnet.net> (permalink) |
| References | <201201162211.RAA15417@smc.vnet.net> |
In[1]:= DeleteCases[Table[If[i < 3, i], {i, 5}], Null]
Out[1]= {1, 2}
________________________________________
From: Rex [aoirex@gmail.com]
Sent: Monday, January 16, 2012 17:11
Subject: How to remove the Null character in a Table?
For example,
Table[If[i < 3, i,], {i, 5}]
will give
{1, 2, Null, Null, Null}
But I want the result to be {1,2}.
Any trick for this?
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: How to remove the Null character in a Table? "Scot T. Martin" <smartin@seas.harvard.edu> - 2012-01-17 08:33 +0000
csiph-web