?? ch7_1_3.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">>> x=[0 1 2 3
4 5]';</FONT>
<P>
<FONT COLOR=#FF0000 FACE="Times New Roman">>> y=[0 20 60
68 77 110]';</FONT>
<P>
<FONT COLOR=#FF0000 FACE="Times New Roman">>> 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">>> 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 + -