Transférer les fichiers vers ''
This commit is contained in:
parent
5144f052e5
commit
51d0d0196f
|
|
@ -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
|
||||||
Loading…
Reference in New Issue