Linterp

Linterp - Does linterp always 'project' beyond values - 消息

#1 已发布: 2016/3/19 23:16:36
Ryan Freund

Ryan Freund

20个赞,共339个帖子。

组: User

I thought linterp used to return the first and/or last value in the Y-vector when the x-value was beyond the first or last x-vector value. Did this change or am I just mistaken?

Is there a different function which will max/min out at the last value in the Y-vector?

Thanks!!
#2 已发布: 2016/3/20 01:19:13
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

I thought linterp used to return the first and/or last value in the Y-vector when the x-value was beyond the first or last x-vector value. Did this change or am I just mistaken?

Is there a different function which will max/min out at the last value in the Y-vector?

Thanks!!



'linterp' interpolates between Xmin... Xmax.
Generaly, it is safe to extrapolate a bit, but you MUST FIRST
plot the data set to see what you are doing. Remember, all
that depends upon the data set and what it represents. If
the min or max are real min/max of the physics, better not
interpolate if you don't want to have a square moon in your bed !
You don't nedd a function that would not know what to do, is it ?

Jean


  • 有新帖
  • 无新帖