AutoCAD Vector v. Matlab calculations, does not match

1 vue (au cours des 30 derniers jours)
Stephen Moran
Stephen Moran le 20 Nov 2019
In AutoCAD generated a vector that begins at the origin and ends at (28.14,18.11)
then rotated it 25 degrees counter clockwise holding the origin fast. The resultant
endpoint of the rotated vector being (17.85,28.30). Again this is done in AutoCAD.
In MATLAB i created theta giving it a value of (25*pi)/180, 25 degrees represented
in radians. x1 being the first vector [28.14,18.11] my rotation vector is
r1=]cos(theta), -sin(theta);sin(theta),cos(theta)]. When I multiply the r1 by x1
i don't get the desired result. That result being what is shown in AutoCAD.
refer to the screen shots below.
autocad example.jpg
matlab entries 2.jpg
matlab entries1.jpg

Réponses (0)

Catégories

En savoir plus sur Simulink dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by