Lösungen zur Prüfung A
6.Dez.2006
Zeit 90 Minuten, Reihenfolge beliebig, Zwischenresultate obligatorisch,
Max.6*8 P., 40 P. = N.6.
v = [ 1+j, -1+j, -1-j, 1-j, 1+j]; plot(v)
x = 0:0.01:5; y1 = exp(-x); y2 = 1./x(2:500); plot(x,y1,'r'); hold on ; plot(x(2:500),y2,'k'); axis([0 5 0 10]); hold off
function S=symmpart(M)
[n,m]=size(M);
S=M;
% damit ist die Diegonale bereits erledigt
% Schleife ueber Teil oberhalb Diagonale
for zei = 1:n
for spa = zei+1:n
S(zei,spa) = 0.5*( M(zei,spa)+M(spa,zei) );
S(spa,zei) = S(zei,spa);
end
end
n = [1 1].
en = [sqrt(2)/2 sqrt(2)/2 ].
w = (0:0.01:8)*2*pi; z = w*10/(2*pi); r = 34 - z/80*32; x = r .*cos(w); y = r .* sin(w); plot3(x,y,z)