This is a weird question but here goes. I have created a spectrogram using MATLAB's built in function. Basically I want to be able to filter the spectrogram to change the intensity levels. I also need this change to be reflected in the colorbar. For example, if I save the spectrogram as a jpeg and filter that image, the entire image is filtered including the axes, titles, and the colorbar. I want to be able to just filter the spectrogram and have the changes in the intensity be reflected in the colorbar. Any ideas? Should I save the figure as something else? Hopefully that makes sense.
No products are associated with this question.
The color bar is a mapping of intensity to color. If you change the intensity, though noise reduction or filtering or any other method, then in the image it will take on the new color for that new intensity that it has. This will happen automatically (or as soon as you display the new intensity image with imshow() or imagesc()).
Use export_fig() to save. Find it in the File Exchange on the front page.
Play games and win prizes!Learn more