MATLAB: How to pass the image from m-file to GUI push button callback

passing image from mfile to gui

hi, i am developing GUI for filter program. In my GUI i used 3 push button an 2 axes. When i press the button1 error image will display on the axes1, when i press the button2 my "filter.m" file will run. After completion my "filter.m" provide me output image in some variable called 'y'. I want to take this image i.e 'y' from "filter.m" file to GUI pushbutton3 callback, so that when i press pushbutton3 i want to display the image y on the axes2. how to do this? i mean what code i should add to "filter.m file" and to GUI pushbutton3 callback program to display the image on axes2?(i have already done coding for push button1 and 2).