Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Interpolation
Date: Mon, 16 Jul 2007 14:45:56 +0000 (UTC)
Organization: Nationwide Mutual Insurance Co.
Lines: 17
Message-ID: <f7g0b4$sbc$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-00-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1184597156 29036 172.30.248.35 (16 Jul 2007 14:45:56 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 16 Jul 2007 14:45:56 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader E7|NGÃÒ
Xref: news.mathworks.com comp.soft-sys.matlab:419335



Does anyone have the code to do interpolation so that it always takes the lower value.

For example, here is a known distribution
X     Y
0.01 200
0.02 500
0.03 700
0.04 900
0.05 1000
...  ...
0.99 20000
1    20300 

if x1=0.015, then y1=200; x1=0.019, y1=200; x1=0.039, y1=700;...


Thanks