ImageVerifierCode 换一换
格式:DOCX , 页数:11 ,大小:763.53KB ,
资源ID:231292      下载积分:15 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/231292.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(matlab程序曲面拟合.docx)为本站会员(b****1)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

matlab程序曲面拟合.docx

1、% Gridfit demo script% This script file is designed to be used in cell mode% from the matlab editor, or best of all, use the publish% to HTML feature from the matlab editor. Older versions% of matlab can copy and paste entire blocks of code into% the Matlab command window.Topographic dataload bluff_

2、data;x=bluff_data(:,1);y=bluff_data(:,2);z=bluff_data(:,3);% Two ravines on a hillside. Scanned from a% topographic map of an area in upstate New York.plot3(x,y,z,.)% Turn the scanned point data into a surfacegx=0:4:264;gy=0:4:400;g=gridfit(x,y,z,gx,gy);figurecolormap(hot(256);surf(gx,gy,g);camlight

3、 right;lighting phong;shading interpline(x,y,z,marker,.,markersize,4,linestyle,none);title Use topographic contours to recreate a surfaceFitting a trigonometric surfaceclearn1 = 15;n2 = 15;theta = rand(n1,1)*pi/2;r = rand(1,n2);x = cos(theta)*r;y = sin(theta)*r;x=x(:);y=y(:);x = 0 0 1 1;x;x;1-x;1-x;

4、y = 0 1 0 1;y;1-y;y;1-y;figureplot(x,y,.)title Data locations in the x-y planez = sin(4*x+5*y).*cos(7*(x-y)+exp(x+y);xi = linspace(0,1,51);xg,yg=meshgrid(xi,xi);zgd = griddata(x,y,z,xg,yg);figuresurf(xi,xi,zgd)colormap(hot(256)camlight rightlighting phongtitle Griddata on trig surface% Note the wing

5、-like artifacts along the edges, due% to the use of a Delaunay triangulation in griddata.zgrid = gridfit(x,y,z,xi,xi);figuresurf(xi,xi,zgrid)colormap(hot(256)camlight rightlighting phongtitle(Gridfit to trig surface)The trig surface with highly different scalings on the x and y axesxs = x/100;xis =

6、xi/100;ys = y*100;yis = xi*100;% griddata has problems with badly scaled dataxg,yg=meshgrid(xis,yis);zgd = griddata(xs,ys,z,xg,yg);figuresurf(xg,yg,zgd)colormap(hot(256)camlight rightlighting phongtitle Serious problems for griddata on badly scaled trig surface% autoscaling on (the default)zgrids =

7、gridfit(xs,ys,z,xis,yis,autoscale,on);% plot the autoscaled resultfiguresurf(xis,yis,zgrids)colormap(hot(256)camlight rightlighting phongtitle Gridfit (automatically scaled) on trig surfaceWarning: Duplicate x-y data points detected: using average of the z values.Fitting the peaks surfaceclearn = 10

8、0;x = (rand(n,1)-.5)*6;y = (rand(n,1)-.5)*6;z = peaks(x,y);xi = linspace(-3,3,101);zpgf = gridfit(x,y,z,xi,xi);xg,yg=meshgrid(xi,xi);zpgd = griddata(x,y,z,xg,yg,cubic);figuresurf(xi,xi,zpgd)colormap(jet(256)camlight rightlighting phongtitle Griddata (method = cubic) on peaks surfacefiguresurf(xi,xi,

9、zpgf)colormap(hsv(256)camlight rightlighting phongtitle(Gridfit to peaks surface)Using tiles in gridfit% Users of gridfit who have really huge problems now have% an option. Ill generate a large amount of data,% and hope to model a fairly large grid - 800 x 800. This% would normally require gridfit t

10、o solve a system of% equations with 640,000 unknowns. It would probably be too% large of a problem for my computer, were I to use gridfit% on the full problem. Gridfit allows you to break the problem% into smaller tiles if you choose. In this case each tile% is 120x120, with a 25% (30 element) overl

11、ap between tiles.% Relax, this demo may take a couple of minutes to run!n = 100000;x = rand(n,1);y = rand(n,1);z = x+y+sin(x.2+y.2)*10);xnodes = 0:.00125:1;ynodes = xnodes;zg,xg,yg = gridfit(x,y,z,xnodes,ynodes,tilesize,120,overlap,0.25);surf(xg,yg,zg)shading interpcolormap(jet(256)camlight rightlighting phongtitle Tiled gridfit

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1