You need to tell the plot function to plot into your axes:
plot(app.UIAxes,X,Y)
If your axes is called something besides app.UIAxes, use that name instead.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!