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

📄 ch4_2_3.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>4.2.3  长条分布函数</H1>

</FONT>

<HR>



<P>

有一个绘图函数与数据分析有关,称为长条分布函数 (histogram),我们可以用它画出一组数据的范围及其

如何分布。它是将数据中的极小到极大值标示在横轴(即是数据的范围),再将各个数据出现的次数对

应该数据值(横轴)来画在纵轴(即是数据分布的比例)。histogram之所以称为长条分布函数是它以长条

来表示数据的分布,预设值为10个长条。MATLAB

用来产生长条分布函数指令为 <FONT COLOR=#FF0000>hist</FONT>。以下是几个例子:

<P>

<FONT COLOR=#FF0000>&gt;&gt; x=-3:0.1:3;</FONT>

<P>

<FONT COLOR=#FF0000>&gt;&gt; y=sin(x);  % 注意x是径度</FONT>

<P>

<FONT COLOR=#FF0000>&gt;&gt; hist(y)   % 画出sin(y)的histogram,横轴代表y的极值[-1,1],纵轴代表y的个数</FONT>

<P>

<FONT COLOR=#FF0000>&gt;&gt; hist(y,25)  % 将预设10个长条改为25个,注意纵轴的值改变,为什么?</FONT>

<P>

<FONT COLOR=#FF0000>&gt;&gt; hist(y,x)  % 将横轴上下限改为-3到3,注意纵轴的值也改变,为什么?

<BR>

</FONT><HR>

<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#77'" tppabs="http://166.111.167.223/computer/tppmsgs/msgs0.htm#77"><IMG SRC="lastpage.gif" tppabs="http://166.111.167.223/computer/cai/matlabjc/img/lastpage.gif" BORDER=0></A>

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