How to update patternCustom plots

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 Commento

Oh, sorry, I ment :
What is ZData? How do I update it according to new magE?
I got the answer already. thanks!

Accedi per commentare.

 Risposta accettata

Since magE is CData, you can just do
h = patternCustom(magE,theta,phi);
h.CData = newMagE;
HTH

Più risposte (0)

Categorie

Scopri di più su Environment and Settings in Centro assistenza e File Exchange

Prodotti

Release

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by