Finding the index of a height.
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Steven
el 29 de Oct. de 2014
Respondida: Mischa Kim
el 29 de Oct. de 2014
New to Matlab and trying to find the index of a height y when it first becomes negative on my plot.
0 comentarios
Respuesta aceptada
Mischa Kim
el 29 de Oct. de 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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Matrix Indexing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!