필터 지우기
필터 지우기

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

조회 수: 4 (최근 30일)
HA
HA 2018년 12월 25일
편집: HA 2019년 1월 2일
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