AutoCAD Vector v. Matlab calculations, does not match

조회 수: 1 (최근 30일)
Stephen Moran
Stephen Moran 2019년 11월 20일
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