Phased Antenna Array Toolbox Display Directivity and Antenna Geometry in App Desginer

4 次查看(过去 30 天)
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 个)

类别

Help CenterFile Exchange 中查找有关 Array Geometries and Analysis 的更多信息

产品


版本

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by