Highlight a point on graph.

조회 수: 235 (최근 30일)
Sampath reddy
Sampath reddy 2012년 4월 24일
편집: poonam 2016년 1월 8일
I have a graph in which i want to highlight a point by 'o'.I want to highlight the point to see if the chosen values are in the acceptable region. Also how to shade differently the acceptable region and otherwise region on the graph.

답변 (1개)

Junaid
Junaid 2012년 4월 24일
Lets say you have a curve, and you know one point which you want to highlight. Then simply plot that point with different marker.
Ex.
a = fspecial('gaussian', [100 1],0.9); % Gaussian distriubution.
plot(a); % you will see Gaussian curve. Now I want to highlight the maximum value.
[y x] = max(a);
hold on; % hold the plot for other curves
plot(x,y,'o','MarkerSize',10);
  댓글 수: 1
poonam
poonam 2016년 1월 8일
편집: poonam 2016년 1월 8일
if i want to highlight more than one points which are deviation of 2 from maximum/minimum value i.e. if max-2< variable< max +2 , How i can modify this?

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

카테고리

Help CenterFile Exchange에서 Graph and Network Algorithms에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by