Hi Alexai,
Kindly follow the following steps mentioned below to create a code in MATLAB that displays reflectance and wavelength when clicking on a specific area with the mouse:
- Load the hyperspectral data into MATLAB
- Create a pot of the data
- Add an event listener for mouse clicks
- Get the x and y coordinates of the clicked point
- Get the values for wavelength and reflectance and display them