Phased Antenna Array Toolbox Display Directivity and Antenna Geometry in App Desginer
2 次查看(过去 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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Array Geometries and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!