I created a script containing axes and a slider following GUI guide. I was able to plot a function depending by parameters related to the slider. I would like to plot the graph of the function over a given image. How could i do that?
Use "hold on" and then call plot. Realize thought that the y axis direction is flipped so you need to set ydir = 'reverse' when you do the plot. And the x axis values must correspond to pixels, like they do for the image.