I'm beginner and trying to use polarplot
and hold on/off
in MATLAB App Designer. Now to use this in app designer, we need to create the polar axes by calling the polaraxes
function in the app designer panel container.
I tried this which is working fine without any error:
pax = polaraxes(app.Panel);
polarplot(pax,th1,r1,'red')
hold(app.UIFigure.CurrentAxes,'on'); % warning
polarplot(pax,th2,r2,'green')
hold(app.UIFigure.CurrentAxes,'off'); % warning
But due to app coding alerts, I'm getting the warning "Specify a UIAxes handle as first argument" for the hold line. How do I resolve this warning ? Is this the correct way to use hold on/off
for the panel container?