www.gusucode.com > matlab编程遗传算法计算匹配电路源码程序 > code1/code/MATLAB源代码/matlab_match/abg3.m
function [ s21 ] = abg3( f ) %UNTITLED 此处显示有关此函数的摘要 % 此处显示详细说明 %f=6:0.01:10; a1=10.25; b1=8.117; c1=0.5351; a2=7.943; b2=8.909; c2=0.4084; a3=9.175; b3=9.796; c3=0.693; a4=8.841; b4=6.912; c4=0.7273; s21=a1*exp(-((f-b1)./c1).^2)+a2*exp(-((f-b2)./c2).^2)+a3*exp(-((f-b3)./c3).^2)+a4*exp(-((f-b4)./c4).^2); %s21=a1*exp(-((f-b1)/c1)^2)+a2*exp(-((f-b2)/c2)^2)+a3*exp(-((f-b3)/c3)^2)+a4*exp(-((f-b4)/c4)^2)-9; %s21=10^(s21/20); %s21_degree=(f-6)*15+30; %plot(f,s21) %max(s2l;1) end