Borrar filtros
Borrar filtros

How to update inactive data cursors

1 visualización (últimos 30 días)
Emil
Emil el 1 de Abr. de 2015
In 2013b I have used a function that calculates the difference between two data cursors. So when I move one cursor it will update dy and dx on both cursors and of course display the correct position. In 2013b it was quite simple to update the datacursor with your string using something like this;
cursorMode=datacursormode(gcf);
cursors=cursorMode.DataCursors;
set(cursors(x),'String',yourstr)
You could even get the active cursor by
currentCursor=cursorMode.CurrentDataCursor;
However, now this doesnt work and I cant find any solution to get around the issue. When following the example at http://se.mathworks.com/help/matlab/ref/datacursormode.html only the active cursor is updates.

Respuestas (0)

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by