MATLAB Answers

Finding another point on the curve

9 views (last 30 days)
Lets say I have the following code which plots the curve out.
[y,t] = step(Pz);
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?


Sign in to comment.

Accepted Answer

Andrei Bobrov
Andrei Bobrov on 11 Jan 2012
try this is code:
yout = interp1(t,y,.2016)
yin - your value of y
tout = fzero(@(t1)yin - interp1(t,y,t1),0)


Wern-Juin Choy
Wern-Juin Choy on 11 Jan 2012
How about if I want to find the value of t given the value of y?

Sign in to comment.

More Answers (0)

Sign in to answer this question.