필터 지우기
필터 지우기

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

조회 수: 30 (최근 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
yousef Yousef
yousef Yousef 2015년 6월 5일
Hi,Thanks for you feeling,you will find every thing in the attached file. Thanks
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
Alfonso Nieto-Castanon
Alfonso Nieto-Castanon 2015년 6월 5일
great, if that works please accept ImageAnalyst solution above since this was basically his original suggestion

댓글을 달려면 로그인하십시오.

카테고리

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