h=figure plot(1:10,cos(1:10)); set(h,'resizefcn',@resize_callback)