Matlab基本函数-cylinder函数
来源:互联网 发布:c语言库函数的数量 编辑:程序博客网 时间:2024/04/30 14:20
1、cylinder函数:绘制三维圆柱图
2、用法说明:
(1)[x,y,z]=cylinder 函数返回一半径和高度都为1的圆柱体x,y,z轴的坐标值,圆柱体沿其周长有20个等距分布的点
(2)[x,y,z]=cylinder(r) 函数一个半径为r、高度为1的圆柱体的x,y,z轴的坐标值,圆柱体沿其周长有20个等距分布的点
(3)[x,y,z]=cylinder(r,n) 函数一个半径为r、高度为1的圆柱体的x,y,z轴的坐标值,圆柱体沿其周长有n个等距分布的点
(4)cylinder(...) 函数只绘制圆柱,没有任何的输出参量。其他参量及结果同上
3、实例
3.1、[x,y,z]=cylinder 函数
>> [x,y,x] = cylinderx = Columns 1 through 17 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Columns 18 through 21 0 0 0 0 1 1 1 1y = Columns 1 through 10 0 0.3090 0.5878 0.8090 0.9511 1.0000 0.9511 0.8090 0.5878 0.3090 0 0.3090 0.5878 0.8090 0.9511 1.0000 0.9511 0.8090 0.5878 0.3090 Columns 11 through 20 0.0000 -0.3090 -0.5878 -0.8090 -0.9511 -1.0000 -0.9511 -0.8090 -0.5878 -0.3090 0.0000 -0.3090 -0.5878 -0.8090 -0.9511 -1.0000 -0.9511 -0.8090 -0.5878 -0.3090 Column 21 0 0x = Columns 1 through 17 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Columns 18 through 21 0 0 0 0 1 1 1 13.2、[x,y,z]=cylinder(r)函数
>> [x,y,z]=cylinder(5)x = Columns 1 through 10 5.0000 4.7553 4.0451 2.9389 1.5451 0.0000 -1.5451 -2.9389 -4.0451 -4.7553 5.0000 4.7553 4.0451 2.9389 1.5451 0.0000 -1.5451 -2.9389 -4.0451 -4.7553 Columns 11 through 20 -5.0000 -4.7553 -4.0451 -2.9389 -1.5451 -0.0000 1.5451 2.9389 4.0451 4.7553 -5.0000 -4.7553 -4.0451 -2.9389 -1.5451 -0.0000 1.5451 2.9389 4.0451 4.7553 Column 21 5.0000 5.0000y = Columns 1 through 10 0 1.5451 2.9389 4.0451 4.7553 5.0000 4.7553 4.0451 2.9389 1.5451 0 1.5451 2.9389 4.0451 4.7553 5.0000 4.7553 4.0451 2.9389 1.5451 Columns 11 through 20 0.0000 -1.5451 -2.9389 -4.0451 -4.7553 -5.0000 -4.7553 -4.0451 -2.9389 -1.5451 0.0000 -1.5451 -2.9389 -4.0451 -4.7553 -5.0000 -4.7553 -4.0451 -2.9389 -1.5451 Column 21 0 0z = Columns 1 through 17 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Columns 18 through 21 0 0 0 0 1 1 1 1>> [x,y,z]=cylinder(5)x = Columns 1 through 10 5.0000 4.7553 4.0451 2.9389 1.5451 0.0000 -1.5451 -2.9389 -4.0451 -4.7553 5.0000 4.7553 4.0451 2.9389 1.5451 0.0000 -1.5451 -2.9389 -4.0451 -4.7553 Columns 11 through 20 -5.0000 -4.7553 -4.0451 -2.9389 -1.5451 -0.0000 1.5451 2.9389 4.0451 4.7553 -5.0000 -4.7553 -4.0451 -2.9389 -1.5451 -0.0000 1.5451 2.9389 4.0451 4.7553 Column 21 5.0000 5.0000y = Columns 1 through 10 0 1.5451 2.9389 4.0451 4.7553 5.0000 4.7553 4.0451 2.9389 1.5451 0 1.5451 2.9389 4.0451 4.7553 5.0000 4.7553 4.0451 2.9389 1.5451 Columns 11 through 20 0.0000 -1.5451 -2.9389 -4.0451 -4.7553 -5.0000 -4.7553 -4.0451 -2.9389 -1.5451 0.0000 -1.5451 -2.9389 -4.0451 -4.7553 -5.0000 -4.7553 -4.0451 -2.9389 -1.5451 Column 21 0 0z = Columns 1 through 17 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Columns 18 through 21 0 0 0 0 1 1 1 13.3、[x,y,z]=cylinder(r,n) 函数
>> [x,y,z]=cylinder(5,10)x = Columns 1 through 10 5.0000 4.0451 1.5451 -1.5451 -4.0451 -5.0000 -4.0451 -1.5451 1.5451 4.0451 5.0000 4.0451 1.5451 -1.5451 -4.0451 -5.0000 -4.0451 -1.5451 1.5451 4.0451 Column 11 5.0000 5.0000y = Columns 1 through 10 0 2.9389 4.7553 4.7553 2.9389 0.0000 -2.9389 -4.7553 -4.7553 -2.9389 0 2.9389 4.7553 4.7553 2.9389 0.0000 -2.9389 -4.7553 -4.7553 -2.9389 Column 11 0 0z = 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 13.4、cylinder(...) 函数
>> cylinder(5)绘制的圆柱图
- Matlab基本函数-cylinder函数
- Matlab基本函数-ceil函数
- Matlab基本函数-colormap函数
- Matlab基本函数-compass函数
- Matlab基本函数-complex函数
- Matlab基本函数-conj函数
- Matlab基本函数-contrast函数
- Matlab基本函数-disp函数
- Matlab基本函数-exp函数
- Matlab基本函数-expm函数
- Matlab基本函数-feather函数
- Matlab基本函数-fix函数
- Matlab基本函数-floor函数
- Matlab基本函数-format函数
- Matlab基本函数-ginput函数
- Matlab基本函数-hidden函数
- Matlab基本函数-imag函数
- Matlab基本函数-length函数
- C# where
- vc 线程的创建,暂停和结束
- 变量 类型 运算符 笔记整理02
- SHTSC记 13.10.26
- Asp.Net生成静态页面的实现方法
- Matlab基本函数-cylinder函数
- 共享内存——The Shared memory
- 关于进制转换的一些函数(可以任意进制转换为任意进制)
- Android之ViewFlipper
- 用linkList实现LRU算法
- UVa11054 poj2940 sdut2370 Wine trading in Gergovia(贪心)
- Asp.net动态生成html页面的方法分享
- adb常用命令及遇到的问题总结
- OCP-1Z0-052-V8.02-58题