Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: conditional operator
Date: Tue, 31 Aug 2010 17:52:19 +0000 (UTC)
Organization: Xoran Technologies
Lines: 5
Message-ID: <i5jfgj$n3j$1@fred.mathworks.com>
References: <ef55682.-1@webcrossing.raydaftYaTP> <gt52md$9t1$1@fred.mathworks.com> <gt53m9$isl$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1283277139 23667 172.30.248.35 (31 Aug 2010 17:52:19 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 31 Aug 2010 17:52:19 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1440443
Xref: news.mathworks.com comp.soft-sys.matlab:666552



One more way,  

sinc = @(x) sin( x+ pi*(x==0))./(x+(x==0)) + (x==0)