登录
首页 » matlab » 实验2-插值与拟合

实验2-插值与拟合

于 2005-08-06 发布 文件大小:117KB
0 241
下载积分: 1 下载次数: 328

代码说明:

  1、掌握用MATLAB计算拉格朗日、分段线性、三次样条三种插值的方法,改变节点的数目,对三种插值结果进行初步分析。 2、掌握用MATLAB作线性最小二乘的方法。 3、通过实例学习如何用插值方法与拟合方法解决实际问题,注意二者的联系和区别。(1. Grasp by matlab calculating Lagrange, segement linear, 3rd order spline these 3 interpolation method. Analisize the 3 interpolation results by changing the No. of points. 2. Grasp the method of linear minimun 2 product mehtod using matlab. 3. Solve the practical problems though the study of example of how to use interpolation and fitting method. Pay attention to the relation and difference of the 2 methods.)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • AlgorithmCollectionsforDigitalSignalProcessingAppl
    matlab基本术语学习,对初学者有帮助(matlab is an important tool for FIR filter design)
    2009-03-24 10:06:11下载
    积分:1
  • li9_23
    clear all I=imread( lena.bmp ) figure imshow(I) I2=imrotate(I,-4, bilinear ) 逆时针旋转4度 figure imshow(I2) I3=fliplr(I) 垂直镜像 figure imshow(I3) I4=imresize(I,0.5, bilinear ) 缩小为原图的1/2 figure imshow(I4) A=double(I) 转换为double类型 计算7个不变矩 [nc,nr]=size(A) [x,y]=meshgrid(1:nr,1:nc) 得到网格 x=x(:) y=y(:) A=A(:) m.m00=sum(A) if m.m00==0 m.m00=eps end m.m10=sum(x.*A) m.m01=sum(y.*A) 计算均值 xmean=m.m10/m.m00 ymean=m.m01/m.m00 计算中心矩(li9_23.rar cm.cm00=m.m00 cm.cm02=(sum((y-ymean).^2.*A))/(m.m00^2) cm.cm03=(sum((y-ymean).^3.*A))/(m.m00^2.5) cm.cm11=(sum((x-xmean).*(y-ymean).*A))/(m.m00^2) cm.cm12=(sum((x-xmean).*(y-ymean).^2.*A))/(m.m00^2.5) cm.cm20=(sum((x-xmean).^2.*A))/(m.m00^2) cm.cm21=(sum((x-xmean).^2.*(y-ymean).*A))/(m.m00^2.5) cm.cm30=(sum((x-xmean).^3.*A))/(m.m00^2.5) im(1)=cm.cm20+cm.cm02 im(2)=(cm.cm20-cm.cm02)^2+4*cm.cm11^2 im(3)=(cm.cm30-3*cm.cm12)^2+(3*cm.cm21-cm.cm03)^2 im(4)=(cm.cm30+cm.cm12)^2+(cm.cm21+cm.cm03)^2 im(5)=(cm.cm30-3*cm.cm12)*(cm.cm30+cm.cm12)... *((cm.cm30+cm.cm12)^2-3*(cm.cm21+cm.cm03)^2)... +(3*cm.cm21-cm.cm03)*(cm.cm21+cm.cm03)... +(3*(cm.cm30+cm.cm12)^2-(cm.cm21+cm.cm03)^2) im(6)=(cm.cm20-cm.cm02)*((cm.cm30+cm.cm12)^2-(cm.cm21+cm.cm03)^2)... +4*cm.cm11*(cm.cm30+cm.cm12)*(cm.cm21+cm.cm03) im(7)=(3*cm.cm21-cm.cm03)*(cm.cm30+cm.cm12)... *((cm.cm30+cm.cm12)^2-3*(cm.cm21+cm.cm03)^2)... +(3*cm.cm12-cm.cm30)*(cm.cm21+cm.cm03)... *()
    2010-10-17 21:53:14下载
    积分:1
  • mog
    mog background subtraction matlab code
    2014-10-09 04:56:03下载
    积分:1
  • sf_building
    基于有关stateflow的教程很少,现上传stateflow的基本教程,内容简练易懂,希望有利用价值(Stateflow tutorials based on very little, is the basic tutorial Stateflow upload content concise and easy to understand, want to have use value)
    2007-09-25 13:48:10下载
    积分:1
  • Blocks
    clc close all clear all I=imread( desert.jpg ) [r c]=size(I) bs=16 Block Size (8x8) nob=(r/bs)*(c/bs) Total number of 8x8 Blocks Dividing the image into 8x8 Blocks kk=0 for i=1:(r/bs) for j=1:(c/bs) Block(:,:,kk+j)=I((bs*(i-1)+1:bs*(i-1)+bs),(bs*(j-1)+1:bs*(j-1)+bs)) end kk=kk+(r/bs) end Accessing individual Blocks figure imshow(Block(:,9,1)) This shows u the fist 8x8 Block in a figure window figure imshow(Block(:,:,2))
    2013-03-17 15:01:05下载
    积分:1
  • dwtsinsigenergycalculation
    Energy calculation for compression and denoising
    2011-02-01 12:15:53下载
    积分:1
  • LTE_precoding
    This function returns the precoding matrix for a specific transmission mode
    2011-02-04 23:11:14下载
    积分:1
  • guoluranshaoPID
    锅炉燃烧过程MATLAB仿真程序,很简单很容易(MATLAB simulation program the boiler combustion process is very simple and very easy)
    2010-05-13 20:05:02下载
    积分:1
  • huffman
    matlab function that generates huffman code for image
    2014-01-27 03:37:02下载
    积分:1
  • fuzzymlsimu
    模糊控制仿真模型,采用MATLAB进行模糊控制系统仿真(FUZZY CONTROL SIMULINK)
    2013-11-26 13:27:35下载
    积分:1
  • 696518资源总数
  • 106148会员总数
  • 10今日下载