Determination of y coordinate of a curve that intersects x axis ?
Show older comments
I have two vectors (A and B) which has 400 elements. I plot a graph A versus B. I want to find the y coordinate of curve that intersects the x axis. How can I do this? Please help me!
Answers (2)
Where the curve intersects the x-axis, the y-coordinate is zero. No need to do anything with MATLAB.
Azzi Abdelmalek
on 20 Nov 2012
t=linspace(0,20)
y=sin(t)
ec=0.1
idx=find(abs(y)<=ec)
t(idx)
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!