How to find the x and y coordinates of the maximum value in curve without defferntiaition
51 次查看(过去 30 天)
显示 更早的评论
Hi I have a curve,I want to find x and y coordinate of the maximum value Thanks
1 个评论
James Tursa
2015-6-4
In what form do you have the curve? A one line definition? A function file? Or what?
采纳的回答
Image Analyst
2015-6-4
If x and y are in arrays, how about
[maxY, indexOfMaxY] = max(y);
xAtMaxY = x(indexOfMaxY);
9 个评论
Image Analyst
2015-6-5
I hope someone with the Communications toolbox can help you. I don't have that so I can't run your code, specifically the awgn() function. I did format it for you though and added the Communications Toolbox to the product list above.
更多回答(1 个)
yousef Yousef
2015-6-5
编辑:yousef Yousef
2015-6-5
7 个评论
Alfonso Nieto-Castanon
2015-6-5
great, if that works please accept ImageAnalyst solution above since this was basically his original suggestion
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Measurements and Statistics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!