SOLUTIONS PROBLEMS CHAPTER 20
U
SEFUL
MATLAB
M

FILES FOR USE IN THE SOLUTION TO PROBLEMS IN THIS CHAPTER
.
Program 1:
converts yparameters to tparameters
% convert y parameters to t parameters
function [t,t11,t12,t21,t22] = ytot(y)
y11=y(1,1);
y12=y(1,2);
y21=y(2,1);
y22=y(2,2);
deltay= y11*y22y12*y21;
t11=y22/y21;
t12 = 1/y21;
t21= deltay/y21;
t22= y11/y21;
t= [ t11 t12; t21 t22];
Program 2:
Computes Zin, Zout, and gains using two port hparameters.
»% twoport analysis in terms of hparameters
»function [zin, zout] =twoport(h, zL, zs)
»['twoport analysis using hparameters']
»h11= h(1,1); h12=h(1,2); h21=h(2,1); h22=h(2,2);
»zin = h11  h12*h21/(h22+ 1/zL)
»yout= h22  h12*h21/(h11+zs);
»zout= 1/yout
»v1tovs= zin/(zin+zs)
»v2tov1= h21/(zin*(h22+1/zL))
»v2tovs= v1tovs*v2tov1
Program 3:
Computes Zin, Zout, and gains using two port yparameters.
% twoport analysis in terms of yparameters
function [zin, zout] =twoporty(y, zL, zs)
['twoport analysis using yparameters']
y11= y(1,1); y12=y(1,2); y21=y(2,1); y22=y(2,2);
yin = y11  y12*y21/(y22+ 1/zL)
zin= 1/yin
yout= y22  y12*y21/(y11+1/zs)
zout= 1/yout
v1tovs= zin/(zin+zs)
v2tov1= y21/(y22+1/zL)
v2tovs= v1tovs*v2tov1
Program 4:
Computes Zin, Zout, and gains using two port tparameters.
% twoport analysis in terms of tparameters
function [zin, zout] =twoportt(t, zL, zs)