%Cascaded Noise Figure
%by G. L. Charvat

close all;
clear all;

%------- noise figure and gain parameters of your system ----%
%FL1
G1 = 10^(-0.5/10);
F1 = 10^(0.5/10);
%LNA1
G2 = 10^(20/10);
F2 = 10^(2/10);
%FL2
G3 = 10^(-0.5/10);
F3 = 10^(0.5/10);
%MXR1
G4 = 10^(-5/10);
F4 = 10^(5/10);
%AMP2
G5 = 10^(20/10);
F5 = 10^(4/10);
%FL3
G6 = 10^(-2/10);
F6 = 10^(2/10);
%AMP2
G7 = 10^(60/10);
F7 = 10^(5/10);
%MXR2
G8 = 10^(-5/10);
F8 = 10^(5/10);
%AF Amplifier
G9 = 10^(40/10);
F9 = 10^(5/10);
%------------------------------------------------------------%

%--- cascaded noise figure calculation ---%

NF = 10*log10(F1+(F2-1)/G1+(F3-1)/(G1*G2)+(F4-1)/(G1*G2*G3)+...
    (F5-1)/(G1*G2*G3*G4)+(F6-1)/(G1*G2*G3*G4*G5)+...
    (F7-1)/(G1*G2*G3*G4*G5*G6)+(F8-1)/(G1*G2*G3*G4*G5*G6*G7)+...
    (F9-1)/(G1*G2*G3*G4*G5*G6*G7*G8)) %(dB)
'dB'

