rotateData

版本 1.0.0.0 (1.8 KB) 作者: Rafa
Rotate coordinates about any specified origin.
1.0K 次下载
更新时间 2011/2/6

查看许可证

[XR,YR,xr,yr,THETA] = rotateData(X,Y,X0,Y0,THETA,DIRECTION)

Rotate coordinates especified by [X,Y] around the point [X0,Y0], by an
angle (in radians) defined by THETA and to the direction especified by
DIRECTION.

THETA is a scalar if the user wishes to define it. THETA can also be
calculated based on the slope defined by two points in [X,Y]. If the
angle is to be calculated, THETA has to be a two-element vector with
the integer indices between which the linear slope in [X,Y] will be
calculated. If defined as an output, THETA calculated (or provided) in
the function is also returned.

DIRECTION should be either 'clockwise' (default) or 'anticlockwise'.

[XR,YR] are the coordinates rotated relative to the input coordinates'
origin. [xr,yr] are the coordinates translated to the origin [XO,YO]
used for the rotation.

Rafael Guedes, UoW
26/11/2010

引用格式

Rafa (2024). rotateData (https://www.mathworks.com/matlabcentral/fileexchange/30304-rotatedata), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2010a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Passivity and Sector Bounds 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0