Assignment-5

Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

National University of Sciences & Technology (NUST)

School of Electrical Engineering and Computer Science (SEECS)


Department of Electrical Engineering

Assignment # 05

Course: EE-947 Microwave Devices and Systems (3+0)

2nd Semester: Spring 2024, Class: MS-EE2K23 (RF&MW)

Instructor: Dr. Nosherwan Shoaib

Submitted by:
Muhammad Talha
(450913)

Due Date: 14th May 2024

(FOR INSTRUCTOR USE ONLY)

Marks Obtained………………/35
Task 1
Tutorial 8
Schematic:
Final Layout
Final 3D View of PCB

Schematic of circuit 2
Final Layout
Final 3D View
Task 3
Matlab Code:

promt="input magnitude of S11 ";


S11_mag=input(promt)
promt="input angle of S11 ";
S11_ang=input(promt)
s11=S11_mag*exp(i*((S11_ang*pi)/180));

promt="input magnitude of S12 ";


S12_mag=input(promt)
promt="input angle of S12 ";
S12_ang=input(promt)
s12=S12_mag*exp(i*((S12_ang*pi)/180));

promt="input magnitude of S21 ";


S21_mag=input(promt)
promt="input angle of S21 ";
S21_ang=input(promt)
s21=S21_mag*exp(i*((S21_ang*pi)/180));

promt="input magnitude of S22 ";


S22_mag=input(promt)
promt="input angle of S22 ";
S22_ang=input(promt)
s22=S22_mag*exp(i*((S22_ang*pi)/180));

promt="input magnitude of Zo ";


Zo_mag=input(promt)
promt="input angle of Zo ";
Zo_ang=input(promt)
Zo=Zo_mag*exp(i*((Zo_ang*pi)/180));

promt="input magnitude of Zs ";


Zs_mag=input(promt)
promt="input angle of Zs ";
Zs_ang=input(promt)
Zs=Zs_mag*exp(i*((Zs_ang*pi)/180));

promt="input magnitude of Zl ";


Zl_mag=input(promt)
promt="input angle of Zl ";
Zl_ang=input(promt)
Zl=Zl_mag*exp(i*((Zl_ang*pi)/180));
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Go=10*log10((abs(s21))^2)
Gsmax=10*log10(1/(1-((abs(s11))^2)))
Glmax=10*log10(1/(1-((abs(s22))^2)))
Gt=Glmax+Go+Gsmax
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
promt="input specific source gain in dB ";
gs=input(promt)
promt="input specific load gain in dB ";
gl=input(promt)
gsn=10^((gs-Gsmax)/10);
gln=10^((gl-Glmax)/10);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
cs=(gsn*conj(s11))/(1-((1-gsn)*(abs(s11)^2)));
rs=((1-gsn)^0.5)*(1-abs(s11)^2)/(1-((1-gsn)*(abs(s11)^2)));
gama_S=abs(cs)-rs
phase=angle(cs)*180/pi
cl=(gln*conj(s22))/(1-((1-gln)*(abs(s22)^2)));
rl=((1-gln)^0.5)*(1-abs(s22)^2)/(1-((1-gln)*(abs(s22)^2)));
gama_l=abs(cl)-rl
phase=angle(cl)*180/pi

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy