MATLAB: How Can I find the values from a matlab figure

getting data from plotmatlab gui

Hi I have a netcdf file which is a grid file of florida bay. Here some scientific values like salinity etc are included. I use a Matlab script to plot a graph from this file. By judging from colour density I can understand the approx value of those data. But I want to read the numerical value.Like if I click on a point I can get the numerical value of that point associated with that. How the pattern of code should be? I am attaching a screenshot of the GUI which I use to plot the data. Please note that I want to modify this GUI and add a box where numerical values will show after click on a point. Any kind of guideline will be appreciatable.

Best Answer

datacursormode('on', 'DisplayStyle', 'window')