Hi, the first line of your app code ( app.pax = polaraxes(app.UIAxes2 ) is probably causing the trouble. It should be sufficient if you just make the plot in your designated axes within the app:
polarplot(app.UIAxes2,thettar,r)
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!