필터 지우기
필터 지우기

how to plot loadpull contour by smith chart?

조회 수: 38 (최근 30일)
승섭 이
승섭 이 2023년 5월 22일
댓글: Rebecca McCabe 2024년 1월 24일
i have a data with loadpull measurement result
vswr, phase and result (gain / aclr / pae data)
i import data below code
clear, close all
T = readtable('P:\MATLABData\LoadPull_HB_2640_32dbm.xlsx')
A = table2array(T);
Gvswr = A(:, 8);
Gmag = A(:, 9);
Gphase = A(:, 10);
Greal = Gmag.*cosd(Gphase);
Gimag = Gmag.*sind(Gphase);
ACLR = A(:, 17);
EVM = A(:, 13);
PAE = A(:, 14);
POUT = A(:, 11);
GAIN = A(:, 12);
CURRENT = A(:, 25);
...
now i dont know how to plot contour by smith chart?
i find other answer..but it could be only polar othogonal coordinate plot..
I want to plot in smith chart.

답변 (1개)

Anurag Ojha
Anurag Ojha 2023년 6월 9일
Hello,
As per my understanding, you are trying to plot load loadpull contour by smith chart. To plot contours on a Smith chart, you can use the “smithplot function available in the RF Toolbox of MATLAB. Here's an example of how you can modify your code to plot contours on a Smith chart:
% Load the data from the Excel file
T = readtable('P:\MATLABData\LoadPull_HB_2640_32dbm.xlsx');
A = table2array(T);
% Extract the required data
Gvswr = A(:, 8);
Gmag = A(:, 9);
Gphase = A(:, 10);
Greal = Gmag .* cosd(Gphase);
Gimag = Gmag .* sind(Gphase);
ACLR = A(:, 17);
EVM = A(:, 13);
PAE = A(:, 14);
POUT = A(:, 11);
GAIN = A(:, 12);
CURRENT = A(:, 25);
% Create a Smith chart
figure;
smithplot;
% Plot contours on the Smith chart
hold on;
contour(Greal, Gimag, GAIN);
colorbar; % Add colorbar to show the contour values
title('Gain Contours on Smith Chart');
xlabel('Real Part');
ylabel('Imaginary Part');
hold off;
For more information you can go through following MATLAB documentation.
Hope it helps!
  댓글 수: 1
Rebecca McCabe
Rebecca McCabe 2024년 1월 24일
I was initially confused by this because I was trying to make a contour plot where X and Y represented the real and imaginary part of z. Nothing would show up on the smith chart. But when I zoomed out, there was a contour plot outside of the plot.
Then I realized that X and Y refer to the real and imaginary part of gamma, not of z, when using this smith plot. So X and Y should range between 0 and 1 only in order for the data to show up on the plot.

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

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by