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


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

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

From James Stein <mathgroup@stein.org>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: How to remove the Null character in a Table?
Date 2012-01-17 08:35 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jf3bs4$ndd$1@smc.vnet.net> (permalink)
References <201201162211.RAA15417@smc.vnet.net>

Show all headers | View raw


DeleteCases[yourList, Null]

On Mon, Jan 16, 2012 at 2:11 PM, Rex <aoirex@gmail.com> wrote:

> 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


Thread

Re: How to remove the Null character in a Table? James Stein <mathgroup@stein.org> - 2012-01-17 08:35 +0000

csiph-web