Rotate surf input matrices

Rotates the SURF input matrices in three-dimensional space
44.0 次下载
更新时间 2017/8/6

查看许可证

[X,Y,Z] = ROTATESURF(x,y,z,euleraxis,eulerangle) rotates the SURF input data xyz, where x,y and z are matrices of the same size, according to the rotation axis euleraxis (vector) and the angle eulerange (radians).

SURF(X,Y,Z) displays the rotated object.

Omitting output arguments causes the object to be displayed with a SURF command and no outputs to be returned.

ROTATESURF(AX,...) plots into AX instead of GCA.

EXAMPLE:
eaxis = [1,1,1];
eangle = pi/4;
[x,y,z] = peaks(25);
[X,Y,Z] = rotatesurf(X,Y,Z,eaxis,eangle);
surf(X,Y,Z)

Álvaro Romero Calvo 09-05-17

引用格式

Álvaro Romero Calvo (2024). Rotate surf input matrices (https://www.mathworks.com/matlabcentral/fileexchange/64026-rotate-surf-input-matrices), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2006a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Graphics Object Properties 的更多信息
致谢

参考作品: Generate cylinder with custom axis

Community Treasure Hunt

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

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