Transférer les fichiers vers ''

This commit is contained in:
Loann RIO 2023-02-03 10:48:40 +01:00
parent 5144f052e5
commit 51d0d0196f
1 changed files with 24 additions and 0 deletions

24
RotM.m Normal file
View File

@ -0,0 +1,24 @@
## Copyright (C) 2023 loann
## Author: loann <rio.loann@gmail.com>
## 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