Path: news.mathworks.com!not-for-mail
From: "us " <us@neurol.unizh.ch>
Newsgroups: comp.soft-sys.matlab
Subject: Re: deleting 0s from an array
Date: Fri, 17 Aug 2007 08:03:41 +0000 (UTC)
Organization: Universit&#228;tsSpital Z&#252;rich
Lines: 14
Message-ID: <fa3kot$4mp$1@fred.mathworks.com>
References: <fa07po$f1c$1@fred.mathworks.com><fa08s1$r4b$1@fred.mathworks.com> <1187326130.279914.104760@g12g2000prg.googlegroups.com>
Reply-To: "us " <us@neurol.unizh.ch>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1187337821 4825 172.30.248.37 (17 Aug 2007 08:03:41 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 17 Aug 2007 08:03:41 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 11
Xref: news.mathworks.com comp.soft-sys.matlab:424249


Richard Brown:
<SNIP pseudo-golf...

> > d(~d)=[]    %provided d does not contain a nan

> I can tie:
> d=d(~~d)

again, and as <walter roberson> pointed out: as long as <d> 
is finite... now, to test this would (probably) cost you an 
extra few chars...

:-)
us