Extract data tips values from a plot in app designer
    13 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Mohd Aaquib Khan
 el 21 de Ag. de 2023
  
    
    
    
    
    Comentada: Florian Bidaud
      
 el 22 de Ag. de 2023
            I want to add the X and Y values of data tips to a matrix. How can I do it?
As an example below, I want to create a 3x2 matrix from the data tip X and Y values

0 comentarios
Respuesta aceptada
  Florian Bidaud
      
 el 21 de Ag. de 2023
        p = plot([0:5],[1:6])
for i = 1:6
    datatipsX(i) = p.Children(i).X;
    datatipsY(i) = p.Children(i).Y;
end
10 comentarios
  Florian Bidaud
      
 el 22 de Ag. de 2023
				Nice !
In the live script, you can't.
Otherwise, you should be able to do that with ax.Children.Children
Más respuestas (0)
Ver también
Categorías
				Más información sobre Creating, Deleting, and Querying Graphics Objects en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



