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

📄 ch3_1_4.htm

📁 一个不错的matlab工程实际问题的解决方法
💻 HTM
字号:
<! Made by Html Translation Ver 1.0>

<HTML>

<HEAD>

<TITLE>  函数分布的快速绘图 </TITLE>

</HEAD>



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

<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 FACE="Times New Roman"> </FONT><FONT COLOR=#FF0000 FACE="Times New Roman">fun</FONT>为一已定义的函数名称,例如<FONT FACE="Times New Roman">

</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 FACE="Times New Roman">

</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</I><I> y 1.2</I>之间画

出:

<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">&gt;&gt; fplot('sin(x)./x',[-20 20 -0.4 1.2])</FONT>

<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">&gt;&gt; title('Fplot of f(x)=sin(x)/x')</FONT>

<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">&gt;&gt; xlabel('x'), ylabel('f(x)')<BR></FONT><HR>

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

<A HREF="ch3_1_5.htm" tppabs="http://166.111.167.223/computer/cai/matlabjc/ch3_1_5.htm"><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 + -