Is it possible to plot patternCostums in appDesigner?
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Bárbara Matos
le 12 Juin 2022
Commenté : Bárbara Matos
le 13 Juin 2022
I have an interfae in appDesigner and I want to plot the a patternCostum graphic.
I was trying this line:
patternCustom(app.RadiationDiagram, E_sum, Theta_points, Phi_points), but it gives this error:
"The object provided as input is not supported; patternCustom only supports phased.CustomAntennaElement and
phased.IsotropicAntennaElement."
If I do this:
figure;
patternCustom(E_sum, Theta_points, Phi_points);
A figure with the patternCostum is opened. But I want this diagram in the interface. Is it possible?
Thank you very much!
0 commentaires
Réponse acceptée
Kevin Holly
le 13 Juin 2022
pattenCustom does not work with uiaxes.
Try this workaround below. First create the diagram on an axes within a figure. Then transfer diagram to uiaxes.
helixdata = csvread('antennadata_test.csv',1,0);
axes_handle=patternCustom(helixdata(:,3),helixdata(:,2),helixdata(:,1));
uiaxes_handle = uiaxes % The uiaxes in your app might be called app.RadiationDiagram
axes_handle.Parent.Parent=uiaxes_handle
9 commentaires
Kevin Holly
le 13 Juin 2022
Please see the app attach. The Children of the Axes in 2021b were not grouped together unlike in 2022a.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!