interpolating many functions
- From: "Francois " <fgourio@xxxxxxxxxxxxx>
- Date: Mon, 30 Jun 2008 19:58:02 +0000 (UTC)
I am trying to accelerate the following 'stylized' piece of
code.
basically I need to do 1-dim interpolation many times.
for i=1:N
V = interp1(grid,W(:,i),A)
keep(:,:,i) = squeeze(sum(Z.*V)) ;
end
where grid is a vector, W is a matrix, A is a large 3d
*array*.
if possible I'd like to get rid of the loop..
I thought there might be a way with interp2, but...
Any idea would be much appreciated!
.
- Follow-Ups:
- Re: interpolating many functions
- From: John D'Errico
- Re: interpolating many functions
- Prev by Date: mutiple callbacks with single timer?
- Next by Date: Re: goto, again
- Previous by thread: mutiple callbacks with single timer?
- Next by thread: Re: interpolating many functions
- Index(es):
Relevant Pages
|