Plot polars in app designer
7 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Antoine Purier
il 6 Mag 2021
Commentato: Antoine Purier
il 6 Mag 2021
Hi everyone,
I am creating an app in which I want to plot polars.But I have difficulties plotting anything.
My app consists of one main figure in which I have created a panel to hold my polar axes since there is no such axes object available in the app designer component library.
Here is what I have done so far:
- I start by creating my polar axes in a startup function and assign these axes to the panel I have created
function startupFcn(app)
app.pax = polaraxes(app.PolarsPanel)
.
.
.
.
end
- Later on, after a calculaton button push, I call a plot function in which I pass, among other things, the app.pax axes
- Inside this plot function, I calculate the polars and plot them as follows
polarplot(app.pax,angleValues,horizontalPolar);
hold on
polarplot(app.pax,angleValues,verticalPolar);
legend(legendLabels)
Doing that, it seems to plot something in my panel (not what I want but it seems to do something) but it also opens a new figure on top of my main (and only) app figure.
I do not want that.
Do you guys have any idea of what I am doing wrong here?
After that, I will try to do the same thing in another panel with the patternCustom function to plot 3D-balloons but again, nothing provided in the app designer compenents library...
Thanks a lot in advance
Antoine
0 Commenti
Risposta accettata
Cris LaPierre
il 6 Mag 2021
Modificato: Cris LaPierre
il 6 Mag 2021
Support for PolarAxes in app designer was added in R2018b. What version of MATLAB are you using?
You might also find the 'Plot on Polar Axes' example code given under this Create Axes Programmatically section helpful.
2 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Polar Plots in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!