?? dihedral_rcs_a.m
字號:
% dihedral_rcs_a.m% ==============================================================% MATLAB code for the calculation of% Azimuthal Response of the Polarization Scattering Matrix % of dihedral corners near boresight, by using PO approximation,% with consideration of single-bounce and double-bounce % contributions.% Syntax:% [dhh,dvv,dhv]=dihedral_rcs_a(a,b,l,beta,tau,freq,phimin,phimax,na)% Input:% a,b -- lengths of the sides of the dihedral corner (cm)% l -- Height of the dihedral corner (cm)% tau-- angle tilted above the local horizontal (deg.)% beta -- the angle between the two faces (deg.)% freq -- frequency (MHz)% phimin -- minimum azimuthal angle (>=-50 deg.)% phimax -- maximum azimuthal angle (<= 50 deg.)% na -- No. of azimuth samples% Output:% dhh -- complex RCS for H-H polarization % dvv -- complex RCS for V-V polarization% dhv -- complex RCS for H-V polarization (dhv=dvh)% Conditions when holding accuracy: % a,b,l>= several wavelengths% ==============================================================function [dhh,dvv,dhv]=dihedral_rcs_a(a,b,l,beta,tau,freq,phimin,phimax,na)c=300.0; % (m/s)wavelength=c/freq; % (m)k=2*pi/wavelength;a=a/100.; %(m)b=b/100.; %(m)l=l/100.; %(m)beta0=beta/2.; %(deg.)pstep=(phimax-phimin)/(na-1);j=sqrt(-1);for i=1:na phi=(phimin+(i-1)*pstep)*pi/180.; % calculation of sa,sb ka=k*a; kb=k*b; beta=beta0*pi/180.; beta3=beta*3.; x=ka*cos(beta+phi)/pi; sa=-j*ka*l/wavelength*sin(beta+phi)*exp(-j*ka*cos(beta+phi))*sinc(x); x=kb*cos(beta-phi)/pi; sb=-j*kb*l/wavelength*sin(beta-phi)*exp(-j*kb*cos(beta-phi))*sinc(x); % calculation of sab,sba gama=atan2(b*sin(2.*beta),a-b*cos(2*beta)); alpha=pi-beta3; if phi<=-alpha aa=0.0; elseif phi>=gama-alpha aa=b*sin(beta-phi)/sin(beta3-phi); else aa=a; end if phi>=alpha bb=0; elseif phi<=gama-beta bb=a*sin(beta+phi)/sin(beta3+phi); else bb=b; end %e-plane x=k*bb*cos(2*beta)*cos(beta+phi)/pi; sin3=sin(beta3+phi); sab=-j*k*bb*l/wavelength*exp(-j*k*bb*cos(beta*2)*cos(beta+phi))*sinc(x); sabe=sab*sin3; x=k*aa*cos(2*beta)*cos(beta-phi)/pi; sin3=sin(beta3-phi); sba=-j*k*aa*l/wavelength*exp(-j*k*aa*cos(beta*2)*cos(beta-phi))*sinc(x); sbae=sba*sin3; %h-plane sin3=-sin(beta-phi); sabh=sab*sin3; sin3=-sin(beta+phi); sbah=sba*sin3; %Total e&h-plane fields tvv(i)=(sa+sb+sabh+sbah)*wavelength/pi; thh(i)=(sa+sb+sabe+sbae)*wavelength/pi;enddhh=thh*cos(2*tau*pi/180.);dvv=tvv*cos(2*tau*pi/180.);dhv=-thh*sin(2*tau*pi/180.);%Graphicsgresult=dihedral_graph(dhh,dvv,dhv,phimin,phimax);% Graphics for dihedral_rcs% -------------------------------------------------------------function gresult=dihedral_graph(dhh,dvv,dhv,phimin,phimax)np=max(size(dhh));pstep=(phimax-phimin)/(np-1);figurei=1:np;p=((i-1)*pstep+phimin);thha=20*log10(abs(dhh)+eps);thhp=atan2(imag(dhh),real(dhh))*180/pi;thhamin=max([min(thha),-75]);thhamax=max([max(thha),-75]);subplot(321)plot(p,thha,'b-')axis([phimin phimax thhamin-5 thhamax+5])grid ontitle('RCS Magnitude of the Dihedral (HH)')%xlabel('Azimuthal angle (deg.)')ylabel('RCS (dBsm)')subplot(322)plot(p,thhp);axis([phimin phimax -180 180]);grid ontitle('RCS Phase of the Dihedral (HH)')%xlabel('Azimuthal angle (deg.)')ylabel('Phase (deg.)')tvva=20*log10(abs(dvv)+eps);tvvp=atan2(imag(dvv),real(dvv))*180/pi;tvvamin=max([min(tvva),-75]);tvvamax=max([max(tvva),-75]);subplot(323)plot(p,tvva,'b-')axis([phimin phimax tvvamin-5 tvvamax+5])grid ontitle('RCS Magnitude of the Dihedral (VV)')%xlabel('Azimuthal angle (deg.)')ylabel('RCS (dBsm)')subplot(324)plot(p,tvvp);axis([phimin phimax -180 180]);grid ontitle('RCS Phase of the Dihedral (VV)')%xlabel('Azimuthal angle (deg.)')ylabel('Phase (deg.)')thva=20*log10(abs(dhv)+eps);thvp=atan2(imag(dhv),real(dhv))*180/pi;thvamin=max([min(thva),-75]);thvamax=max([max(thva),-75]);subplot(325)plot(p,thva,'b-')axis([phimin phimax thvamin-5 thvamax+5])grid ontitle('RCS Magnitude of the Dihedral (HV)')xlabel('Azimuthal angle (deg.)')ylabel('RCS (dBsm)')subplot(326)plot(p,thvp);axis([phimin phimax -180 180]);grid ontitle('RCS Phase of the Dihedral (HV)')xlabel('Azimuthal angle (deg.)')ylabel('Phase (deg.)')gresult=1;
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -