Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: interp1 issue
Date: Thu, 13 Nov 2008 06:28:02 +0000 (UTC)
Organization: UTSA
Lines: 9
Message-ID: <gfghdh$405$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 1226557682 4101 172.30.248.37 (13 Nov 2008 06:28:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 13 Nov 2008 06:28:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1332985
Xref: news.mathworks.com comp.soft-sys.matlab:500562


For the example in matlab help 'interp1', 
t = 1900:10:1990;
p = [75.995  91.972  105.711  123.203  131.669...
     150.697  179.323  203.212  226.505  249.633]; 
year=1975;
interp1(t,p,year)
'ans =214.8585'

What if the t is a 3-d matrix (2x3x10), p remains constant, and year is a 2-d matrix (2x3), the answer would be a 2-d matrix (2x3) with various p values. How to do this in matlab?