Graphics Programs Reference
In-Depth Information
rcs = rcs + eps;
rcs = 20.0*log10(rcs); % RCS ins dBsm
% Plot RCS versus frequency
freq = freql:delfreq:frequ;
plot(freq,rcs);
grid;
xlabel('Frequency');
ylabel('RCS in dBsm');
Listing 11.3. MATLAB Program Ðexample11_1.mÑ
clear all
close all
N = 50;
wct = linspace(0,2*pi,N);
% Case 1
ax1 = cos(wct);
ay1 = sqrt(3) .* cos(wct);
M1 = moviein(N);
figure(1)
xc =0;
yc=0;
axis image
hold on
for ii = 1:N
plot(ax1(ii),ay1(ii),'>r');
line([xc ax1(ii)],[yc ay1(ii)]);
plot(ax1,ay1,'g');
M1(ii) = getframe;
end
grid
xlabel('Ex')
ylabel('Ey')
title('Electric Field Locus; case1')
% case 2
ax3 = cos(wct);
ay3 = sin(wct);
M3 = moviein(N);
figure(3)
axis image
hold on
for ii = 1:N
plot(ax3(ii),ay3(ii),'>r');
line([xc ax3(ii)],[yc ay3(ii)]);
Search WWH ::




Custom Search