-
onoff
f the input is a numeric array, it returns a cell array of strings of on or off depending on the logical outcome.
Conversely, if the input is a cell array of strings of on or off , then it does the reverse, i.e. returns the logical matrix where on is true and off is false.
It is very useful when using set/get on arrays of handle objects or arrays of properties/values.
Example:
onoff( [0, 1, 0]) gives { off , on , off }
onoff({ on , on , off }) gives [1, 1, 0]
It also works for mixed cell array inputs, and for other string pairs:
yes/no, ok/cancel, open/closed
- 2009-09-07 18:18:36下载
- 积分:1
-
newton
牛顿迭代法用于求解非线性方程组,及求解范围(Newton iterative method for solving nonlinear equations, and solve the range)
- 2010-06-27 15:22:16下载
- 积分:1
-
Fig5x18
电力电子、电机控制系统仿真模型 经典仿真源程序 洪乃刚版本(Power electronics, motor control system simulation model version of the classic simulation source Hong Naigang)
- 2011-05-09 23:20:57下载
- 积分:1
-
trosMPU788
用于arduino的加速度传感器MPU788的库文件(library file of MPU788 for Arduino)
- 2014-12-18 11:10:05下载
- 积分:1
-
PerceptronRecognition
模式识别,感知器训练算法Matlab演示(Pattern recognition, perceptron training algorithm Matlab demo)
- 2010-01-11 10:01:09下载
- 积分:1
-
Percolation-Cluster
对周围相邻的 8 邻居求和(元胞只有两种状态,0 或 1 )。元胞也有一个单独的状态参量(所谓 记录 )记录它们之前是否有非零状态的邻居。 在 0 与 1 之间产生一个随机数 r 。 如果总和> 0 (至少一个邻居)并且 r >阈值,或者元胞从未有过一个邻居,则元胞= 1 。 如果总和> 0 则设置"记录"的标志,记录这些元胞有一个非零的邻居。 (8 adjacent neighbors on the surrounding sum (cell only two states, 0 or 1). Cell also has a separate state parameters (so-called ' records' ) record that they have non-zero state before the neighbors. Between 0 and 1 generate a random number r. If the sum of> 0 (at least one neighbor) and r> threshold, or the cell has never had a neighbor, then cell = 1. If the sum> 0 set the " record" sign, record the cell has a non-zero neighbors.)
- 2011-06-30 19:59:51下载
- 积分:1
-
modelfree_0412
用matlab实现无模型自适应控制的点m文件(Model free adaptive control of the point m file with matlab)
- 2012-05-28 20:21:37下载
- 积分:1
-
Particle-filter
粒子滤波程序,涉及粒子群的选取和更新,迭代计算得到滤波结果(Particle filter select and update procedures involving particle swarm the iterative calculation filtering results)
- 2013-04-11 22:04:13下载
- 积分:1
-
Surface-electromyography
肌电假肢控制中的表面肌电信号的研究进展与展望(Progress and Prospects of myoelectric prosthetic control of surface electromyography)
- 2015-03-27 21:18:07下载
- 积分:1
-
casade
说明: 小波插值与小波基构造,实现均值插值和立方插值(Wavelet Interpolation and wavelet construction, the realization of the mean cubic interpolation and interpolation)
- 2008-12-02 11:40:52下载
- 积分:1