Is it possible to plot patternCostums in appDesigner?

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 日

0 投票

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 件のコメント

Bárbara Matos
Bárbara Matos 2022 年 6 月 13 日
Like this?
Kevin Holly
Kevin Holly 2022 年 6 月 13 日
Did it work?
Bárbara Matos
Bárbara Matos 2022 年 6 月 13 日
It appears the error in the image I sent
Kevin Holly
Kevin Holly 2022 年 6 月 13 日
編集済み: Kevin Holly 2022 年 6 月 13 日
What is app.RadiationDiagram?
Bárbara Matos
Bárbara Matos 2022 年 6 月 13 日
It is already an uiaxes in my application
Kevin Holly
Kevin Holly 2022 年 6 月 13 日
Please see the app attached.
Bárbara Matos
Bárbara Matos 2022 年 6 月 13 日
編集済み: Bárbara Matos 2022 年 6 月 13 日
I've already seen the app you sent. But on my computer that app doesn't work either. I press the button, it creates a separate picture and the app's graphics are blank. And it gives the error "Axes cannot be a child of UIAxes." I'm doing the same thing in my app and it doesn't work. I really don't understand why. I am using matlab 2021b.
Thank you very much for your help, I will keep trying!
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 件)

カテゴリ

ヘルプ センター および File ExchangeDevelop 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