Is it possible to plot patternCostums in appDesigner?

조회 수: 5 (최근 30일)
Bárbara Matos
Bárbara Matos 2022년 6월 12일
댓글: Bárbara Matos 2022년 6월 13일
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!

채택된 답변

Kevin Holly
Kevin Holly 2022년 6월 13일
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
Error using uiaxes
This functionality is not available on remote platforms.
axes_handle.Parent.Parent=uiaxes_handle
  댓글 수: 9
Kevin Holly
Kevin Holly 2022년 6월 13일
Please see the app attach. The Children of the Axes in 2021b were not grouped together unlike in 2022a.
Bárbara Matos
Bárbara Matos 2022년 6월 13일
Aaaahhh, ok! Now I understand! It works very well. Thank you so much for your help and I apologize for the inconvenience. :)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by