?? ch3_1_4.htm
字號:
<! Made by Html Translation Ver 1.0>
<html>
<head>
<title> 函數分布的快速繪圖 </title>
</head>
<body BACKGROUND="../img1/bg0000.gif" tppabs="http://webclass.ncu.edu.tw/~junwu/img/bg0000.gif">
<script language="JAVASCRIPT">
<!--
if (navigator.onLine){
document.write("<!-- Spidersoft WebZIP Ad Banner Insert -->");
document.write("<TABLE width=100% border=0 cellpadding=0 cellspacing=0>");
document.write("<TR>");
document.write("<TD>");
document.write("<ILAYER id=ad1 visibility=hidden height=60></ILAYER>");
document.write("<NOLAYER>");
document.write("<IFRAME SRC='http://www.spidersoft.com/ads/bwz468_60.htm' width=100% height=60 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no></IFRAME>");
document.write("</NOLAYER>");
document.write("</TD>");
document.write("</TR>");
document.write("</TABLE>");
document.write("<!-- End of Spidersoft WebZIP Ad Banner Insert-->");
}
//-->
</script>
<!-- Spidersoft WebZIP Ad Banner Insert -->
<!-- End of Spidersoft WebZIP Ad Banner Insert-->
<font COLOR="#0000FF">
<h1>3.1.4 函數分布的快速繪圖</h1>
</font>
<hr>
<p><font COLOR="#FF0000" FACE="Times New Roman">fplot</font>的指令可以用來自動的畫一個已定義的函數分布圖,而無須產生繪圖所須要的一組數據做為變數。其語法
為<font COLOR="#FF0000" FACE="Times New Roman">fplot('fun',[xmin xmax ymin ymax])</font>,其中
<font COLOR="#FF0000" FACE="Times New Roman">fun</font>為一已定義的函數名稱,例如
<font COLOR="#FF0000" FACE="Times New Roman">sin</font><font FACE="Times New Roman">, </font><font COLOR="#FF0000" FACE="Times New Roman">cos</font>等等;而 <font COLOR="#FF0000" FACE="Times New Roman">xmin</font><font FACE="Times New Roman">, </font><font COLOR="#FF0000" FACE="Times New Roman">xmax</font><font FACE="Times New Roman">, </font><font COLOR="#FF0000" FACE="Times New Roman">ymin</font><font FACE="Times New Roman">, </font><font COLOR="#FF0000" FACE="Times New Roman">ymax</font>
則是設定繪圖橫軸及縱軸的下限及上限。以下的例子是將一函數<i>
f(x)=sin(x)/x</i>在<i>-20 x 20</i>,-<i>0.4 y 1.2</i>之間畫 出: </p>
<p><font COLOR="#FF0000" FACE="Times New Roman">>> fplot('sin(x)./x',[-20 20 -0.4
1.2])</font> </p>
<p><font COLOR="#FF0000" FACE="Times New Roman">>> title('Fplot of f(x)=sin(x)/x')</font>
</p>
<p><font COLOR="#FF0000" FACE="Times New Roman">>> xlabel('x'), ylabel('f(x)')<br>
</font></p>
<hr>
<a HREF="ch3_1_3.htm" tppabs="http://webclass.ncu.edu.tw/~junwu/ch3_1_3.htm">
<p><img SRC="../img1/lastpage.gif" tppabs="http://webclass.ncu.edu.tw/~junwu/img/lastpage.gif" BORDER="0" WIDTH="42" HEIGHT="42"></a> <a HREF="ch3_1_5.htm" tppabs="http://webclass.ncu.edu.tw/~junwu/ch3_1_5.htm"><img SRC="../img1/nextpage.gif" tppabs="http://webclass.ncu.edu.tw/~junwu/img/nextpage.gif" BORDER="0" HSPACE="10" WIDTH="42" HEIGHT="42"></a> <a HREF="../index.html" tppabs="http://webclass.ncu.edu.tw/~junwu/index.html"><img SRC="../img1/outline.gif" tppabs="http://webclass.ncu.edu.tw/~junwu/img/outline.gif" BORDER="0" HSPACE="6" WIDTH="42" HEIGHT="42"></a><br>
<font SIZE="2" COLOR="#AA55FF">上一頁 下一頁 講義大綱 </font><layer src="http://www.spidersoft.com/ads/bwz468_60.htm" visibility="hidden" id="a1" width="600" onload="moveToAbsolute(ad1.pageX,ad1.pageY); a1.clip.height=60;visibility='show';"></layer> </p>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -