Phased Antenna Array Toolbox Display Directivity and Antenna Geometry in App Desginer
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Is it possible to use the embedded functions in the Phased Antenna Array Toolbox such as viewArray and pattern functions to plot inside a given axes within the App Designer Window instead of opening a separate window for this purpose?
I have tried the following piece of code where I assign the handle of the created Axis within the App to viewArray Function, but did not work out. The viewArray function keeps opening a new window to plot the geometry or the pattern of the antenna:
function startupFcn(app)
app.Pax = axes(app.ns380211adCodebookGeneratorUIFigure);
app.Pax.Units = 'pixels';
app.Pax.Position = [572 193 621 523];
app.Pax.GridColor = [0.15,0.15,0.15];
end
function VisualizeArrayButtonPushed(app, event)
h = phased.ULA;
h.NumElements = 4;
h.ElementSpacing = 0.5;
h.ArrayAxis = 'y';
viewArray(h, 'AxesHandle', app.Pax, 'ShowNormals', false, 'ShowIndex', 'None');
end
0 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Array Geometries and Analysis 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!