How to update patternCustom plots

조회 수: 1 (최근 30일)
Arye Lerner
Arye Lerner 2019년 5월 1일
편집: Arye Lerner 2019년 5월 12일
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
Arye Lerner
Arye Lerner 2019년 5월 12일
Oh, sorry, I ment :
What is ZData? How do I update it according to new magE?
I got the answer already. thanks!

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

채택된 답변

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

제품


릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by