Using Data tip values in App designer
Mostrar comentarios más antiguos
I want to use the data tip coordinates, so I want to create a new matrix and add the x and y values of the created data tip to the new matrix. Can someone help on how is it done?
Respuestas (1)
Praveen Reddy
el 29 de Ag. de 2023
Editada: Praveen Reddy
el 29 de Ag. de 2023
Hi Aaquib,
I understand that you want to add data tip coordinates on the axes component to a new matrix in app designer.
- You can initialize a new matrix variable as shown below to store the coordinates
properties (Access = private)
dataTipMatrix = []; % Initialize an empty matrix
end
- In your App Designer, navigate to the callback function where you want to capture coordinates, retrieve the coordinates and add it to the matrix as shown below
function YourCallbackFunction(app, event)
% intialize x,y with the data tip coordinates
% Add the coordinates to the data tip matrix
app.dataTipMatrix = [app.dataTipMatrix; x, y];
end
Hope this helps!
1 comentario
Mohd Aaquib Khan
el 29 de Ag. de 2023
Categorías
Más información sobre Develop Apps Using App Designer en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!