Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: even and odd numbers
Date: Sun, 25 Jan 2009 21:26:03 +0000 (UTC)
Organization: KTH
Lines: 24
Message-ID: <glildb$p5n$1@fred.mathworks.com>
References: <glikor$epo$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1232918763 25783 172.30.248.37 (25 Jan 2009 21:26:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 25 Jan 2009 21:26:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1670
Xref: news.mathworks.com comp.soft-sys.matlab:513840

"Rubi " <phreakadelik@hotmail.com> wrote in message <glikor$epo$1@fred.mathworks.com>...
> Hi and thanks for any idea or code !
> 
> Im new at matlab 
> I have an .m file UY=[0.513671875	
> 0.620666504	
> 115.847168	
> 256.2485046	
> 230.8596191	
> ....]
> 
> And i have to separate in a new file the even numbers and odd numbers is that posible having decimals? i searched and i found this code 
> 
> if mod(x,2) == 0
> %number is even
> else
> %number is odd
> end
> 
> Thank you :) 

The number, 115.847168, is that even or odd? 

/per