How can i get the x value for a chosen y value?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
nevin
el 22 de Sept. de 2014
Comentada: nevin
el 24 de Sept. de 2014
I've plot my spectrum with "plot (abs(wave));". I successfully got my Y max value with "maxY = max(abs(wave))". But now I want the X axis value that corresponds to my maximum Y value. Anybody can help? Thank you in advance!
0 comentarios
Respuesta aceptada
Iain
el 22 de Sept. de 2014
[maxY index] = max(abs(wave));
index is either the X value, or something you can use to get the x values, eg,
x = 1:54:23423
correspondingX = x(index);
Más respuestas (0)
Ver también
Categorías
Más información sobre Annotations 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!