How to find the x and y coordinates of the maximum value in curve without defferntiaition

26 次查看(过去 30 天)
Hi I have a curve,I want to find x and y coordinate of the maximum value Thanks

采纳的回答

Image Analyst
Image Analyst 2015-6-4
If x and y are in arrays, how about
[maxY, indexOfMaxY] = max(y);
xAtMaxY = x(indexOfMaxY);
  9 个评论
Image Analyst
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
yousef Yousef 2015-6-5
编辑:yousef Yousef 2015-6-5
  • z=abs(P);
  • zz=round(z);
  • ymax=max(zz);
  • xmax=THETA(find (zz==ymax));
  • However ,if somebody has better solution,I kindly ask hem or her to provide me with.Thanks
  7 个评论
yousef Yousef
yousef Yousef 2015-6-5
Thanks I think it is working great.But I still need to run it so many times to be sure.I will assure you if there is a problem in the results with this way of solving or not. Thanks a lot

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Communications Toolbox 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by