find minimum y-value and x-value
    20 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    YJ
 am 15 Apr. 2014
  
    
    
    
    
    Kommentiert: Nickolaus Hopper
 am 2 Feb. 2021
            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.
0 Kommentare
Akzeptierte Antwort
  Walter Roberson
      
      
 am 15 Apr. 2014
        [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 Kommentar
  Nickolaus Hopper
 am 2 Feb. 2021
				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!!
Weitere Antworten (0)
Siehe auch
Kategorien
				Mehr zu Creating, Deleting, and Querying Graphics Objects finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


