AutoCAD Vector v. Matlab calculations, does not match

1 view (last 30 days)
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

Answers (0)

Categories

Find more on Simulink in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!