Finding another point on the curve

1 回表示 (過去 30 日間)
Wern-Juin Choy
Wern-Juin Choy 2012 年 1 月 11 日
Lets say I have the following code which plots the curve out.
[y,t] = step(Pz);
plot(t,y);
I have found a point on the curve and would like to find another point which is very close to the first point.
The first point is (0.2011,0.0197).
The second point should be (0.2016,y).
How do I find the value of y for the second point?

採用された回答

Andrei Bobrov
Andrei Bobrov 2012 年 1 月 11 日
try this is code:
yout = interp1(t,y,.2016)
ADD
yin - your value of y
tout = fzero(@(t1)yin - interp1(t,y,t1),0)
  2 件のコメント
Wern-Juin Choy
Wern-Juin Choy 2012 年 1 月 11 日
How about if I want to find the value of t given the value of y?
Andrei Bobrov
Andrei Bobrov 2012 年 1 月 11 日
see ADD

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeInterpolation についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by