MathGroup Archive 2012

[Date Index] [Thread Index] [Author Index]

Search the Archive

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


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.



  • Prev by Date: Example of Cellular potts model in mathematica
  • Next by Date: Re: How to remove the Null character in a Table?
  • Previous by thread: Re: How to remove the Null character in a Table?
  • Next by thread: Re: How to remove the Null character in a Table?