PolarAxes in Matlab App Designer
Show older comments
Hello,
Simply, I need a way to define a PolarAxes object under parent object in Matlab App Designer. I tried the following code, but it doesn't work.!
pax = polaraxes(app.parent)
Hint: I took a look at the example of plotting polar plot in App Designer in the documentation, but I don't know where to find the actual code.
Accepted Answer
More Answers (2)
Mario Malic
on 26 Dec 2020
theta = 0:0.01:2*pi;
rho = sin(2*theta).*cos(2*theta);
pax = polaraxes(app.Panel);
polarplot(pax,theta,rho)
6 Comments
Taha Adel
on 26 Dec 2020
Mario Malic
on 26 Dec 2020
What version of MATLAB do you have?
Taha Adel
on 26 Dec 2020
Mario Malic
on 26 Dec 2020
Replace app.Panel with handle to your parent uifigure. This works on 2020b, also, there's a demo app in the App Designer itself that uses polar plot, check if your version has one.
pax = polaraxes(app.UIFigure);
Mario Malic
on 26 Dec 2020
So I guess polar axes are not supported in 2018a.
Taha Adel
on 26 Dec 2020
0 votes
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!