Graphics Programs Reference
In-Depth Information
end
end
end
rcs_db = 10.0 * log10(rcs);
figure (1);
plot ((theta * 180.0 / pi),rcs_db,'k');
xlabel ('Aspect angle - degrees');
ylabel ('RCS - dBsm');
%title ('phi = 45 deg, (a,b,c) = (.15,.20,.95) meter')
grid;
Listing 11.6. MATLAB Program Ðfig11_18a.mÑ
% Use this program to reproduce Fig. 11.18a
%This program computes the back-scattered RCS for an ellipsoid.
% The angle phi is fixed to three values 0, 45, and 90 degrees
% The angle theta is varied from 0-180 deg.
% A plot of RCS versus theta is generated
% Last modified on July 16, 2003
clear all;
% === Input parameters ===
a = .15; % 15 cm
b = .20; % 20 cm
c = .95 ; % 95 cm
% === End of Input parameters ===
as = num2str(a);
bs = num2str(b);
cs = num2str(c);
eps = 0.00001;
dtr = pi/180;
for q = 1:3
if q == 1
phir = 0; % the first value of the angle phi
elseif q == 2
phir = pi/4; % the second value of the angle phi
elseif q == 3
phir = pi/2; % the third value of the angle phi
end
sin_phi_s = sin(phir)^2;
cos_phi_s = cos(phir)^2;
% Generate aspect angle vector
theta = 0.:.05:180;
thetar = theta * dtr;
if(a ~= b & a ~= c)
Search WWH ::




Custom Search