Path: news.mathworks.com!newsfeed-00.mathworks.com!nlpi057.nbdc.sbc.com!prodigy.net!news.glorb.com!news.aset.psu.edu!support1.mathforum.org!not-for-mail
From: bogfrog <jmcgraw@rcn.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: if else - odd -even in Matlab
Date: Mon, 11 Aug 2008 19:25:29 EDT
Organization: The Math Forum
Lines: 5
Message-ID: <25152266.1218497159716.JavaMail.jakarta@nitrogen.mathforum.org>
References: <g7qesi$8nl$1@fred.mathworks.com>
NNTP-Posting-Host: nitrogen.mathforum.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: support1.mathforum.org 1218497159 24000 144.118.30.135 (11 Aug 2008 23:25:59 GMT)
X-Complaints-To: news@support1.mathforum.org
NNTP-Posting-Date: Mon, 11 Aug 2008 23:25:59 +0000 (UTC)
Xref: news.mathworks.com comp.soft-sys.matlab:484990


if mod(x,2) == 0
  %number is even
else
  %number is odd
end