Finding the index of a height.
1 view (last 30 days)
Show older comments
New to Matlab and trying to find the index of a height y when it first becomes negative on my plot.
0 Comments
Accepted Answer
Mischa Kim
on 29 Oct 2014
Steven, use something like
x = 1:0.1:5;
y = sin(x); % this would be your height
ind = find(x==min(x(y<0)))
0 Comments
More Answers (0)
See Also
Categories
Find more on Matrix Indexing 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!