MATLAB Multiple Data Cursors in Figure

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 9K views
DoubleHubble
Messages
8
Reaction score
0
Say I command the following simple script:

figure; plot([1:12],[1:12],[1:12],[4:15])'

1. How can I create a data cursor on one curve that automatically creates a data cursor at the same x-axis value for the other curve without having to manually create (Alt-Click, then line up) a second Datatip?

2. Is there a way to drag one Datatip left and right and have all other Datatips drag left and right by the respective amount (i.e. link the data cursors together by the x-axis)?

The reason I ask is because I have six different curves per subplot (of which I have 3) per figure (of which I have 12) and I would like to minimize the time spent creating and lining up all of the data cursors in each figure.

Feel free to answer one or both of the questions. I feel they are closely related, and if you know the answer to one, you may know the answer to the other - hence my including them in the same thread.
 
Physics news on Phys.org