Lösungen der Aufgaben rüberkopiert.
This commit is contained in:
9
MATLAB/Uebungen/01 Erste Schritte/Aufgabe 7/Drehmatrix.m
Normal file
9
MATLAB/Uebungen/01 Erste Schritte/Aufgabe 7/Drehmatrix.m
Normal file
@@ -0,0 +1,9 @@
|
||||
function D = Drehmatrix(winkel)
|
||||
%Berechnung der zweidimensionalen Drehmatrix; Winkel in Grad.
|
||||
|
||||
%Umrechnung in Rad
|
||||
winkelRad = (winkel * pi) / 180;
|
||||
|
||||
%Generierung der Drehmatrix
|
||||
D = [cos(winkelRad) -sin(winkelRad); sin(winkelRad) cos(winkelRad)];
|
||||
end
|
||||
Reference in New Issue
Block a user