How to update patternCustom plots

5 vues (au cours des 30 derniers jours)
Arye Lerner
Arye Lerner le 1 Mai 2019
Modifié(e) : Arye Lerner le 12 Mai 2019
Hi,
I am using patternCustom function to show radiation pattern of an array.
Plotting it is straight forward:
patternCustom(magE,theta,phi);
I want to update the plot without redrawing it - it suppose to be much faster.
So, XData and YData is theta and phi, respectively (or not - its less important), CData is magE - What is ZData? How do I update it according to new magE?
Thanks
  1 commentaire
Arye Lerner
Arye Lerner le 12 Mai 2019
Oh, sorry, I ment :
What is ZData? How do I update it according to new magE?
I got the answer already. thanks!

Connectez-vous pour commenter.

Réponse acceptée

Honglei Chen
Honglei Chen le 9 Mai 2019
Since magE is CData, you can just do
h = patternCustom(magE,theta,phi);
h.CData = newMagE;
HTH

Plus de réponses (0)

Catégories

En savoir plus sur Environment and Settings dans Help Center et File Exchange

Produits


Version

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by