How can I plot a custom pattern in a subplot?

조회 수: 1 (최근 30일)
Lars Stolp
Lars Stolp 2017년 3월 20일
답변: Afiq Azaibi 2017년 3월 23일
Hi, i tried to plot 4 patterncustom in 4 subplots. If the coordinate system is polar the plot will be printed. But if not the plot will delete all other subplots and only the last one will be displayed. Any hints to solve this issue?
  댓글 수: 1
Adam
Adam 2017년 3월 20일
Please show some code so we don't have to waste time guessing what you may be doing wrong.

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

채택된 답변

Afiq Azaibi
Afiq Azaibi 2017년 3월 23일
You can reproduce the issue by running the following. If you set a break point on the last line, you will see the subplot disappear after executing the last line.
subplot(2,2,1)
d = dipole;
[efield,az,el] = pattern(d, 75e6,'Type','efield');
phi = az';
theta = (90-el);
MagE = efield';
patternCustom(MagE,theta,phi);
This behavior occurs because the default to visualize radiation pattern is set to polar. If you look at the source code of 'patternCustom' when using 'polar' or 'rectangular', the current figure will be deleted.

추가 답변 (0개)

카테고리

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

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by