I have two matrices. One matrix is plotted and the other has information about each plot line.
Super simplified example:
t = 0:.001:1;f = [10,20,30]; % information vectory = sin(2*pi*f.*t'); % output matrixplot(t,y)
I would like to use the datatip to show the 'f' information along with the x,y coordinates. I am trying to follow the 'myupdatefcn' method using 'datacursormode', but I can't figure out which line (or column of the matrix) I am placing a datatip on.
Any help would be appreciated.