MATLAB scatter with tooltip showing other kinds of data and connecting points with arrowhead
- 阅读更多 关于 MATLAB scatter with tooltip showing other kinds of data and connecting points with arrowhead
I want to ask two questions here. In short they are, In a scatter plot in MATLAB how can I click a point using the tooltip and get not the x,y data but some other sort of data associated with the x,y point? Right now I have a workaround using gscatter and a file from file-exchange (see below). But it will get messy for large data sets. How do I connect two points with an arrowhead on the line between them? For example in the rlocus plots MATLAB makes, there is a nifty little arrowhead. Is there a native way to do this in MATLAB for arbitrary plots? Consider the data set in MATLAB clearvars