I am super struggling with this problem. I need to show in 3D how the magnitude of the Voltage Reflection Coefficient changes for a fixed Z_0 BUT with a changing Z_L, i.e. a changing load impedance.
It is not working at all and have no idea how to proceed. It seems MATLAB will not allow sum or difference operations for 3d plots.
clear,clc,cla,clf;
figure;
resistance = 0:10:400;
reactance = -400:10:400;
R = 50; % Fixed resistance of Transmission Line
X = 0; % Fixed reactance of Transmission Line
R_matrix = zeros(length(resistance),length(resistance));
R_matrix(:) = R;
X_matrix = zeros(length(reactance),length(reactance));
X_matrix(:) = X;
[RESISTANCE,REACTANCE] = meshgrid(resistance,reactance);
VRC = ((resistance - R_matrix).^2 + (reactance - X_matrix).^2) ./ ((resistance + R_matrix).^2 + (reactance - X_matrix).^2);
surf(RESISTANCE,REACTANCE,VRC);
xlabel('Resistance (\Omega)',"FontSize",14);
ylabel('Reactance X','FontSize',14);
zlabel('Voltage Reflection Coefficient','FontSize',14);



