⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ch7_1_3.htm

📁 matlab详细手册,提供各种相关的操作
💻 HTM
字号:
<! Made by Html Translation Ver 1.0>

<HTML>

<HEAD>

<TITLE>  Spline 内插 </TITLE>

</HEAD>



<BODY BACKGROUND="bg0000.gif" tppabs="http://166.111.167.223/computer/cai/matlabjc/img/bg0000.gif">

<FONT COLOR="#0000FF">

<H1>7.1.3  Spline 内插</H1>

</FONT>

<HR>



<P>

关于<FONT COLOR=#FF0000>spline</FONT>内插我们在7.1.1节已介绍过,它可以用<FONT COLOR=#FF0000>interp1</FONT>指定内插方式为<FONT COLOR=#FF0000>spline</FONT>来做。另一种方式也可以用

<FONT COLOR=#FF0000>spline(x,y,xi)</FONT>来做,其中的<FONT COLOR=#FF0000>x</FONT>,<FONT COLOR=#FF0000>y</FONT>,<FONT COLOR=#FF0000>xi</FONT>的用法与<FONT COLOR=#FF0000>interp1</FONT>中的语法相同。事实上这二种方法采用相同的<FONT COLOR=#FF0000>spline </FONT>函数做

运算,也就是当我们执行<FONT COLOR=#FF0000>interp1(x,y,xi,'spline')</FONT>时,MATLAB即呼叫<FONT COLOR=#FF0000>spline(x,y,xi)</FONT>做运算,再将计算结果传回

<FONT COLOR=#FF0000>interp1</FONT>。

<BR>

<P>

我们还是以在<FONT FACE="Times New Roman"> 7.1.1 </FONT>节相同的数据做<FONT FACE="Times New Roman">

</FONT><FONT COLOR=#FF0000 FACE="Times New Roman">spline</FONT><FONT FACE="Times New Roman">

</FONT>内插示范,

<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">&gt;&gt; x=[0 1 2 3

4 5]';</FONT>

<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">&gt;&gt; y=[0 20 60

68 77 110]';</FONT>

<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">&gt;&gt; y1=spline(x,y,2.6)</FONT>

<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">y1 =</FONT>

<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">    67.3</FONT>

<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">&gt;&gt; y1=spline(x,y,[2.6,4.9])</FONT>

<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">y1 =</FONT>

<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">    67.3  105.2<BR>

</FONT><HR>

<A HREF="ch7_1_2.htm" tppabs="http://166.111.167.223/computer/cai/matlabjc/ch7_1_2.htm"><IMG SRC="lastpage.gif" tppabs="http://166.111.167.223/computer/cai/matlabjc/img/lastpage.gif" BORDER=0></A>

<A HREF="javascript:if(confirm('http://166.111.167.223/computer/tppmsgs/msgs0.htm  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?'))window.location='http://166.111.167.223/computer/tppmsgs/msgs0.htm#33'" tppabs="http://166.111.167.223/computer/tppmsgs/msgs0.htm#33"><IMG SRC="nextpage-1.gif" tppabs="http://166.111.167.223/computer/cai/matlabjc/img/nextpage.gif" BORDER=0 HSPACE=10></A>

<A HREF="index.html" tppabs="http://166.111.167.223/computer/cai/matlabjc/index.html"><IMG SRC="outline-1.gif" tppabs="http://166.111.167.223/computer/cai/matlabjc/img/outline.gif" BORDER=0 HSPACE=6></A><BR>

<FONT SIZE=2 COLOR=#AA55FF> 上一页 下一页 讲义大纲 </FONT>

</BODY>

</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -