How to find the x and y coordinates of the maximum value in curve without defferntiaition
50 views (last 30 days)
Show older comments
yousef Yousef
on 4 Jun 2015
Commented: Alfonso Nieto-Castanon
on 5 Jun 2015
Hi I have a curve,I want to find x and y coordinate of the maximum value Thanks
1 Comment
James Tursa
on 4 Jun 2015
In what form do you have the curve? A one line definition? A function file? Or what?
Accepted Answer
Image Analyst
on 4 Jun 2015
If x and y are in arrays, how about
[maxY, indexOfMaxY] = max(y);
xAtMaxY = x(indexOfMaxY);
9 Comments
Image Analyst
on 5 Jun 2015
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.
More Answers (1)
yousef Yousef
on 5 Jun 2015
Edited: yousef Yousef
on 5 Jun 2015
7 Comments
Alfonso Nieto-Castanon
on 5 Jun 2015
great, if that works please accept ImageAnalyst solution above since this was basically his original suggestion
See Also
Categories
Find more on Measurements and Statistics in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!