**Rotating a matrix by different angles in 2d in matlab**
https://stackoverflow.com/questions/42663562/rotating-a-matrix-by-different-angles-in-2d-in-matlab

WebMay 31, 2023 · What you want is to have access to every 2x2 rotation matrix. One way of doing it is R1 = [cos(theta) -sin(theta)] % Create a 10x2 matrix R2 = [sin(theta) cos(theta)] % Create a 10x2 matrix R = cat(3,R1,R2) % Cocatenate ("paste") both matrix along the 3 dimension creating a 10x2x2 matrix R = permute(R,[3,2,1]) % Shift dimensions so the …

**DA:** 86 **PA:** 2 **MOZ Rank:** 28