How can I plot the antenna array pattern/ the 3D pattern plot in MATLAB App Developer without plotting the figures in a new window?
18 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Roby Karan
el 27 de Oct. de 2022
Comentada: Roby Karan
el 1 de Nov. de 2022
I am trying to plot some figures in MATLAB App Designer such as the antenna pattern (rectangular and polar), the 3D array pattern, the array structure, etc. I want to plot the figures in the app, without opening them in a new window.
I am using functions such as:
- pattern(app.ArrayURA,app.f,-180:180,-90:90,'PropagationSpeed',app.c,'Type','powerdb','CoordinateSystem','polar','Weights',app.w);
- viewArray(app.ArrayURA,'ShowNormals',true,'ShowIndex','All');
- plotSpectrum(app.estimator, 'NormalizeResponse', true);
How can I do so? I know that it is possible to use the UIAxes function, but how can you use it for a 3D plot or for the antenna array plot?
0 comentarios
Respuesta aceptada
Kevin Holly
el 28 de Oct. de 2022
You can add the following as a workaround (See app attached for an example):
h = gca;
app.UIAxes.XLabel = h.XLabel;
app.UIAxes.YLabel = h.YLabel;
app.UIAxes.Title = h.Title;
for ii = length(h.Children):-1:1
h.Children(ii).Parent = app.UIAxes;
end
close(gcf)
4 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Antennas, Microphones, and Sonar Transducers en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!