How to find the point in a plot that indicate to the beginning of a curve?
    7 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
Dear all,
I have a two dimension plot X, Y as shown in the attached image below. X and Y are linearly increase together, however at some point X will increase but y will not increase, and this simply will cause a curve in the plot.
My question is how to find the point X that indicate the beginning of the curve in the plot?
Any help will be appreciated.
Meshoo

0 Kommentare
Antworten (1)
  Mischa Kim
    
      
 am 24 Sep. 2014
        
      Bearbeitet: Mischa Kim
    
      
 am 24 Sep. 2014
  
      Meshooo, you could use something like
 x  = 0:0.1:10;
 y  = sin(x);
 plot(x,y)
 xp = min(x(diff(y)<0))
diff computes the differences in array elements, sort of the first derivative of y. xp therefore marks the first x for which the derivative of y is negative.
4 Kommentare
Siehe auch
Kategorien
				Mehr zu Annotations finden Sie in Help Center und File Exchange
			
	Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
