필터 지우기
필터 지우기

find minimum y-value and x-value

조회 수: 16 (최근 30일)
YJ
YJ 2014년 4월 15일
댓글: Nickolaus Hopper 2021년 2월 2일
I have attached files
I have made a code that plots the values.
And I need to find a x -value when y-vale is at minimum value.
Also when I ploted, the significant figures in the plotting graph is not long enough that I can not compare the value
for instance, (using data crusor)
for x= 2, y= 0.311(322), for x=4, y= 0.311(433)
the value in bracket is omitted so I can not compare values.

채택된 답변

Walter Roberson
Walter Roberson 2014년 4월 15일
[miny, minyidx] = min(y);
minx = x(minyidx);
If you want the data cursor to show more digits then you can create a custom data cursor callback.
  댓글 수: 1
Nickolaus Hopper
Nickolaus Hopper 2021년 2월 2일
Thank you so much Mr. Robertson, you have no idea how much of a help your post has been not only for me but for many others as well. Again thank you very much!!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Graphics Object Properties에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by