-
function
this is a matlab program for function
- 2009-10-29 01:18:02下载
- 积分:1
-
2
说明: 有一个长度为整数L(1<=L<=10000)的马路,可以想象成数轴上长度为L的一个线段,起点是坐标原点,在每个整数坐标点有一棵树,即在0,1,2,...,L共L+1个位置上有L+1棵树。
现在要移走一些树,移走的树的区间用一对数字表示,如 100 200表示移走从100到200之间(包括端点)所有的树。
可能有M(1<=M<=100)个区间,区间之间可能有重叠。现在要求移走所有区间的树之后剩下的树的个数。
输入:
两个整数L(1<=L<=10000)和M(1<=M<=100)。
接下来有M组整数,每组有一对数字。
输出:
可能有多组输入数据,对于每组输入数据,输出一个数,表示移走所有区间的树之后剩下的树的个数。(Has a length of integer L (1 < = L < = 10000) of the road, one can imagine a number line segment of length L, the starting point is the coordinate origin, each integer coordinate points in a tree, i.e. 0,1 , 2, ..., L total has L+1 L+1 positions on the tree. Now to remove some trees, tree removed by a range of digitally represented, such as 100 200 represents removed (inclusive) between 100 and 200 all the trees. There may be M (1 < = M < = 100) intervals, there may be overlap between the intervals. Now, after the number of trees require the removal of all remaining sections of the tree. Input: two integer L (1 < = L < = 10000) and M (1 < = M < = 100). Then there is an integer M groups, each with a pair of numbers. Output: there may be multiple sets of input data, for each set of input data, the output of a number indicating the number of the removal of all remaining sections of the tree after tree.)
- 2015-03-22 23:35:47下载
- 积分:1
-
1374444386
matlab of linear system
- 2008-12-26 14:11:41下载
- 积分:1
-
matlab2
两种常微分方程求解的matlab程序,是自学matlab的小程序可以学学(Two kinds of solution of ordinary differential equations matlab program, matlab is a small program can self-learn)
- 2010-10-22 11:31:19下载
- 积分:1
-
zhuanjiaPID
说明: 基于MATLAB编程的专家控制PID源程序(Expert PID control based on MATLAB source code)
- 2010-04-12 22:58:01下载
- 积分:1
-
shuiyin
运用matlab对数字图像进行仿真,得到其压缩后的图像(Use of matlab for digital image simulation, the compressed image)
- 2011-05-16 11:19:05下载
- 积分:1
-
pq_pu
一个简单的PQ控制模型。利用直流电源当电源。希望能有帮助。(A simple control model PQ. When using a DC power supply. I hope to have help.)
- 2014-09-22 10:54:04下载
- 积分:1
-
123bp
应用bp神经网络进行分类的实例,很简单适合初学者。(Application of bp neural network to classify instances, is very simple for beginners.)
- 2014-11-06 16:29:05下载
- 积分:1
-
SPWM
simulink搭建的单相光伏并网系统 基于SPWM控制方式(Simulink of single-phase photovoltaic (pv) grid system based on SPWM control mode)
- 2014-11-06 17:02:29下载
- 积分:1
-
pjimage.m
源码-一个实例搞定MATLAB界面编程_简单易懂适合新手。(Source- an instance to get MATLAB programming interface _ easy to understand for novice.)
- 2014-01-02 18:02:15下载
- 积分:1