?? ch4_3.htm
字號:
<! Made by Html Translation Ver 1.0>
<html>
<head>
<title> 選擇指令及函數(shù) </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>4.3 選擇指令及函數(shù)</h1>
</font>
<hr>
<p>到目前為止所介紹 MATLAB 程式的執(zhí)行方式都是序列式的 (sequential),即是一個指令接著一個指令的執(zhí)行。但是有許多時候不能僅以序列式方式執(zhí)行指令,例如我們
須要一個有選擇的指令能讓我們依設(shè)定的條件來決定是否執(zhí)行某些指令,或是要做些重復(fù)性或是有規(guī)則變化
的運算或是資料處理,這些工作是以「控制流程」來做到。透過控制流程的指令可以將整個程式精簡許多,
且變得更有效率。 <br>
</p>
<hr>
<ul>
<li>4.3 選擇指令及函數(shù) <ul>
<li>4.3.1 <a HREF="ch4_3_1.htm" tppabs="http://webclass.ncu.edu.tw/~junwu/ch4_3_1.htm">關(guān)系及邏輯運算</a>
</li>
<li>4.3.2 <a HREF="../../../../tppmsgs/msgs0.htm#27" tppabs="http://webclass.ncu.edu.tw/~junwu/ch4_3_2.htm">if-else-end 語法</a> </li>
</ul>
</li>
</ul>
<hr>
<a HREF="ch4_2_3.htm" tppabs="http://webclass.ncu.edu.tw/~junwu/ch4_2_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="ch4_3_1.htm" tppabs="http://webclass.ncu.edu.tw/~junwu/ch4_3_1.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>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -