No BSD License
-
scArc(Point, LinCol)
-
scConCirc(r,LinCol)
-
scDraw(r, x, ChColor, xR, xL,...
scDraw : Draws a blank smith chart
-
scMatchCirc(LinCol)
scMatchCirc : Draws the match-circle on smith chart
-
scMove(Pos1,length,LinCol)
scMove : Move along the transmission line on smith chart to transform impedance
-
scPOI(r, x)
scPOI: calculates the point of intersection of the circles defining r and x
-
scRay(point, LinCol)
scRay : Draws a ray emanating from the origin towards a given point on smith chart
-
y=scInv(z, LinCol)
scInv : Inverts a given impedance (admitance) by mirroring it about the origin
-
View all files
from
smithchart
by Mohammad Ashfaq
A collection of files capable of drawing a standard colored smith chart including labels and scales
|
| y=scInv(z, LinCol)
|
function y=scInv(z, LinCol)
%scInv : Inverts a given impedance (admitance) by mirroring it about the origin
%
% SYNOPSIS:
% This function inverts the given impedance (admittance) by mirroring it about
% the origin of the smith chart.
%
% See also scDraw, scMove, scConCirc, scMatchCirc
%
% SYNTAX:
% [y] = scInv(z)
%
% INPUT ARGUMENTS:
% z : Impedance (or admittance)
%
% OUTPUT ARGUMENT:
% y : Inverted admittance (or impedance)
%
% EXAMPLE:
% y = scInv([2 3])
% y =
% 0.1538 -0.2308
%
%
% Mohammad Ashfaq - (31-05-2000)
% Mohammad Ashfaq - (13-04-2006) Modified (example included)
%
if nargin < 1
error('scInv.m: One input argument required...You may give LinCol as second argument as well');
end
if nargin == 1
LinCol = 'm';
end
if (size(z)==[1, 1])
if conj(z) == z
r = z;
x = 0;
else
r = real (z);
x = imag (z);
end
elseif max(size(z)) == 2 && min(size(z)) == 1
r = z(1);
x = z(2);
else
error('scInv.m: Input must either be a complex number or a 1x2 vector [r x]');
end
if (r+j*x)~=0
y1 = 1/(r+j*x);
y(1) = real(y1);
y(2) = imag(y1);
else
y = inf;
end
|
|
Contact us at files@mathworks.com