필터 지우기
필터 지우기

How can I find starting and ending points of a repetitive bar graph

조회 수: 1 (최근 30일)
Shantanu Saxena
Shantanu Saxena 2016년 12월 26일
댓글: Image Analyst 2016년 12월 26일
Here the bar graph has a min value of 0 and max value of 10 which is being repeated 3-4 times.
What can I do to get the values on the x-axis for every starting and ending point of the graph? (i.e. for every 0 to 10 repetition)
Kindly help me out!

답변 (1개)

Image Analyst
Image Analyst 2016년 12월 26일
Use diff(). When there is no change in your data the result will be 0.
  댓글 수: 2
Shantanu Saxena
Shantanu Saxena 2016년 12월 26일
What can be the logic that I can apply using the max value which is 10 and min value 0 so that the code can give the points on the x axis for the beginning of every repetition which ranges from 0 to 10?
Image Analyst
Image Analyst 2016년 12월 26일
Please attach your x and y data and how you plotted that. You can get the y axis limits using ylim(). You can get your data values from the data directly and the max of all the data using the max() function.

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

카테고리

Help CenterFile Exchange에서 Discrete Data Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by