• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

matlab插值小记

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

先看interpolation的介绍,了解两种数据类型,如何生成grid,meshgrid的原理(我的理解)。

matlab的插值针对两种数据:grid and scattered data。明显grid数据计算简单。

One other interesting characteristic is that the interpolating function passes through the data points. This is an important distinction between interpolation and curve/surface fitting. In fitting, the function does not necessarily pass through the sample data points.

插值和拟合的区别:插值经过所有数据点,拟合则不能保证。

参考

gallery,The gallery holds over fifty different test matrix functions useful for testing algorithms and other purposes.

两种方式生成grid:meshgridndgrid ,注意它们的区别

为什么插值要求grid数据?目的是加速,grid是间隔是均匀的,所以查找的时候很快,不用搜索,直接用除尘就能把区间找到,找到区间后再用二分法找到需要插值点两边的格网点。所以很快。

grid数据插值的两大类函数:

  • interp
  • griddedInterpolant(高效)

可是大多数时候我们的数据不是那么规整,不规整的数据要构建三角网,插值函数也有两类:

第二种方法的三角网只在第一次使用时构建,所以高效。

griddata的原理是先用meshgrid生成一个风格区域,再用griddata计算这个网格区域的值(我:再用这个网格数据进行插值就会很高效)。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Delphi2010新增功能之:手势编程[5]-关于自定义手势发布时间:2022-07-18
下一篇:
DelphiXE2的控件安装方法。发布时间:2022-07-18
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap