Getting max Y-Value and draw a new line
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi, I have time data of a simulation, that give several Y-Values for one X-Value.
I want to get the max. Y-Value for each X, like the red line: Before:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/149365/image.png)
After:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/149366/image.png)
Data:
4 comentarios
Walter Roberson
el 24 de Sept. de 2015
Only about 0.5 % of your x values are duplicated.
You may need something similar to http://www.mathworks.com/help/signal/ug/envelope-extraction-using-the-analytic-signal.html
Respuestas (0)
Ver también
Categorías
Más información sobre Line Plots 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!