资源简介
Surface Curvature
代码片段和文件信息
function [KHPmaxPmin] = surfature(XYZ)
% SURFATURE - COMPUTE GAUSSIAN AND MEAN CURVATURES OF A SURFACE
% [KH] = SURFATURE(XYZ) WHERE XYZ ARE 2D ARRAYS OF POINTS ON THE
% SURFACE. K AND H ARE THE GAUSSIAN AND MEAN CURVATURES RESPECTIVELY.
% SURFATURE RETURNS 2 ADDITIONAL ARGUEMENTS
% [KHPmaxPmin] = SURFATURE(...) WHERE Pmax AND Pmin ARE THE MINIMUM
% AND MAXIMUM CURVATURES AT EACH POINT RESPECTIVELY.
% First Derivatives
[XuXv] = gradient(X);
[YuYv] = gradient(Y);
[ZuZv] = gradient(Z);
% Second Derivatives
[XuuXuv] = gradient(Xu);
[YuuYuv] = gradient(Yu);
[ZuuZuv] = gradient(Zu);
[XuvXvv] = gradient(Xv);
[YuvYvv] = gradient(Yv);
[ZuvZvv] = gradient(Zv);
% Reshape 2D Arrays into Vectors
Xu = Xu(:); Yu = Yu(:); Zu = Zu(:);
Xv = Xv(:); Yv = Yv(:); Zv = Zv(:);
Xuu = Xuu(:); Yuu = Yuu(:); Zuu = Zuu(:);
Xuv = Xuv(:); Y
- 上一篇:禁忌搜索解决背包问题matlab
- 下一篇:matlab画ROC曲线
相关资源
- matlab画ROC曲线
- 禁忌搜索解决背包问题matlab
- 蚁群算法解决背包问题matlab
- matlab遗传算法解决背包问题
- matlab实现meanshift图像分割
- MATLAB常规均匀圆阵波束形成
- 小波基构造函数 Matlab函数
- 多种插值算法Matlab实现--数学建模
- 智能优化算法及其MATLAB源程序
- qpsk调制stbc仿真
- matlab递归生成树
- 寻找割集的matlab算例程序
- 计算短时过零率MATLAB
- 用matlab实现模拟退火kmeans聚类
- 逐步回归MATLAB程序(新)
- [MATLAB+R2017a人工智能算法][张德丰][程
- sgy地震波数据文件及MATLAB处理sgy文件
- 信道编码程序matlab
- 二维粒子群算法的matlab源程序.docx.z
- QPSKMATLAB仿真程序
- Matlab 下限制边界泰森多边形voronoi计算
- Matlab实现读取二进制数据绘制波形,
- matlab2014b
- gabormatlab
- gamma校正matlab
- 回馈整流MATLAB仿真
- matlab提取音频特征
- 数据预处理 剔除奇异点 matlab程序
- MATLAB+遗传算法+多车有容量约束VRP
- MATLAB遗传算法VRP
评论
共有 条评论