rectplate.m
上传用户:szahd2008
上传日期:2020-09-25
资源大小:1275k
文件大小:2k
源码类别:

传真(Fax)编程

开发平台:

Matlab

  1. clear all
  2. frequency = 1.0e9;                  % desired radar frequency
  3. c = 299795645.0;                    % speed of light
  4. w = 2.0*pi*frequency;               % radian frequency
  5. wavenumber = w/c;                   % free space wavenumber
  6. mu = 4.0*pi*1.0e-7;                 % free space permeability
  7. z_o = 376.7343;                     % free space wave impedance
  8. l_x = 1.0;                          % length of plate
  9. l_y = 1.0;                          % width of plate
  10. normal_vect = [0 0 1];              % +z normal for x-y plane
  11. theta_points = 180;                 % number of points in theta
  12. phi_points = 1;                     % number of points in phi
  13. theta = linspace(-0.5*pi, 0.5*pi, theta_points);
  14. phi = linspace(0.0, 2.0*pi, phi_points);
  15. for i_theta = 1:theta_points
  16.       
  17.     for i_phi = 1:phi_points
  18.         
  19.         theta_vect(1) = cos(theta(i_theta))*cos(phi(i_phi));
  20.         theta_vect(2) = cos(theta(i_theta))*sin(phi(i_phi));
  21.         theta_vect(3) = -sin(theta(i_theta));
  22.         
  23.         phi_vect(1) = -sin(phi(i_phi));
  24.         phi_vect(2) = cos(phi(i_phi));
  25.         phi_vect(3) = 0.0;
  26.         
  27.         u = sin(theta(i_theta))*cos(phi(i_phi));
  28.         v = sin(theta(i_theta))*sin(phi(i_phi));
  29.         
  30.         vect_term = dot(theta_vect, cross(phi_vect, normal_vect));
  31.         
  32.         es(i_theta, i_phi) = -j*w*mu/2.0/pi/z_o*vect_term*l_x*l_y*sinc(wavenumber*u*l_x)*sinc(wavenumber*v*l_y);
  33.        
  34.     end
  35. end
  36. rcs = 20.0*log10(sqrt(4*pi)*abs(es));
  37. plot(180*theta/pi, rcs)
  38. axis([-90 90 -60 30])
  39. xlabel('Theta (degrees)')
  40. ylabel('RCS (dBsm')
  41. grid on
  42. title('frequency = 1 GHZ')
  43. return