MATLAB: Plotting intensity profile in different axes within GUI.

digital image processingimage processing

Inside a GUI if we use 'improfile' function ,it is creating a different figure to plot the intensity profile. But I want to plot the profile in onther axes within the GUi (For example the image is showing in axes1 and the intensity profile should come in axes2).Is it possible by using improfile? Thank you

Best Answer

Yes, you can use axes() to switch the current axes from the one you drew in to the one you want to plot the profile in. Or else just pass the axes handle in to the plot() function as an argument.