AutoCAD Vector v. Matlab calculations, does not match

1 次查看(过去 30 天)
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

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simulink 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by