在MATLAB中,求(规则)曲面的法线的函数是:surfnorm(X,Y,Z),那有没有求非规则trisurf()曲面的法线的函数呢,或者提供一种比较好的求法线的方法。
还有trisurf(tri,X,Y,Z);函数中tri的矩阵大小为M*3,M的大小为多少?(因为我要在VC中调用trisurf(tri,X,Y,Z);必须定义tri的大小)
还有trisurf(tri,X,Y,Z);函数中tri的矩阵大小为M*3,M的大小为多少?(因为我要在VC中调用trisurf(tri,X,Y,Z);必须定义tri的大小)
解决方案 »
- VC++ 一个简单的小程序 VS2008编译器(多线程 远程通讯的小程序
- Html 播放Gif动画
- 如何让模态对话框不显示出来(下面的3行代码),急求!!!!!
- VC如何搜索指定程序内存?
- 问题
- 外包给一家ui公司做的b/s系统界面,大家评评
- 超级菜鸟,几个VC的简单问题。
- 一个动态创建和释放问题
- 我用BoundsChecker想监测程序的内存漏洞,但是在vc内使用BoundsChecker编译后什么警告也没有,我故意开辟一个动态数组没有用delete[]释放
- 求教!一个头文件包含的问题
- 求关于shockwave flash的使用说明?和flash与vc之间交互的实现。
- 关于ctabctrl的问题,左边是一个ctabctrl,里面有个list孔件,右边是view视图,怎么编!谢谢!
trisurf(Tri,X,Y,Z,C)
trisurf(...'PropertyName',PropertyValue...)
h = trisurf(...)Descriptiontrisurf(Tri,X,Y,Z) displays triangles defined in the m-by-3 face matrix Tri as a surface.
Each row of Tri defines a single triangular face by indexing into the vectors or matrices that contain the X, Y, and Z vertices. trisurf(Tri,X,Y,Z,C) specifies color defined by C in the same manner as the surf function. MATLAB performs a linear transformation on this data to obtain colors from the current colormap. trisurf(...'PropertyName',PropertyValue...) specifies additional patch property names and values for the patch graphics object created by the function. h = trisurf(...) returns a patch handle. Example
Create vertex vectors and a face matrix, then create a triangular surface plot. x = rand(1,50);
y = rand(1,50);
z = peaks(6*x-3,6*x-3);
tri = delaunay(x,y);
trisurf(tri,x,y,z)