matlab 三维图像中meshgrid 用法
来源:互联网 发布:视频中五毛钱特效软件 编辑:程序博客网 时间:2024/06/15 00:42
meshgrid 函数用来生成网格矩阵,可以是二维网格矩阵,也可以是三维。
对于生成二维网格,用法为:[x y]=meshgrid(a b); % a 和b是一维数组,如a=[1 2 3]; b= [2 3 4 ]; 则生成的 x 和 y 都是二维的矩阵
x 的每行都是 1 2 3,共三行,y 每列都是2 3 4,共三列。
x 1 2 3 y 2 2 2
1 2 3 3 3 3
1 2 3 4 4 4
举个实例:For example, to evaluate the function: x*exp(-x^2-y^2)
over the range -2 < x < 2, -2 < y < 2, [X,Y] = meshgrid(-2:.2:2, -2:.2:2); Z = X .* exp(-X.^2 - Y.^2); mesh(X,Y,Z)
对于三维网格,生成方式与二维一样 :[x y z]=meshgrid(a b c) ; %算出的结果根据二维的类推。
附件:二维网格例子的结果图。
0 0
- matlab 三维图像中meshgrid 用法
- Matlab中meshgrid的用法
- MATLAB中meshgrid函数用法
- matlab中 meshgrid 函数的用法
- matlab中meshgrid【转载】
- matlab中meshgrid函数
- matlab 三维曲线曲面 meshgrid and surf
- matlab 函数meshgrid的用法
- matlab中meshgrid 的使用方法
- matlab中meshgrid的使用
- matlab 画三维图像
- matlab三维图像
- matlab画三维图像
- matlab meshgrid
- 对MATLAB中meshgrid的理解
- Matlab中以三维的方式显示灰度图像
- Matlab显示图像三维信息
- matlab 三维图像的绘制
- leetcode67Add Binary
- 在windows平台上使用mingw编译PYQT5
- 浅谈===和==
- Leetcode 25. Reverse Nodes in k-Group
- c++中的左值与右值
- matlab 三维图像中meshgrid 用法
- 2017Java最新编程设计题(含答案)
- 关于github的简单使用
- qt 之界面 实现技巧
- UVA
- struts2的约束配置
- [数据结构] 散列表
- 调整数组顺序使奇数位于偶数前面
- A problem occurred starting process 'command aidl'