diff --git a/RotM.m b/RotM.m new file mode 100644 index 0000000..3f98627 --- /dev/null +++ b/RotM.m @@ -0,0 +1,24 @@ +## Copyright (C) 2023 loann + +## Author: loann +## Created: 2023-02-03 +## + +function matrix = RotM (theta) +%%%%%%%%%%%%%%%%%%%%% +% function matrix = RotM (theta) +% ex. outVector = add2vectors(1.2433) +% +% Task: create a rotation matrix for a specific angle +% +% Inputs: +% - theta: angle in radius +% +% Output: +% -matrix: 2 dimention rotation matrix +% +% author: Loann rio (rio.loann@gmail.com) +% date: 03/02/2023 +%%%%%%%%%%%%%%%%%%%%% +matrix = [cos(theta) -sin(theta); sin(theta) cos(theta)] +endfunction