-
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
-
yiquan-suanfa-bianyuan-jiance-
matlab的蚁群算法边缘检测方法。代码可以给需要的人学习(ant colony algorithm for edge detection in matlab. The code can be to those who need to learn)
- 2012-06-27 21:45:31下载
- 积分:1
-
perceptron
this is matlab code for perceptron
- 2011-06-01 11:50:32下载
- 积分:1
-
guangyizuixiaoercehng
用matlab实现广义最小二乘的数值运算,欢迎大家参考。(Achieve numerical computation of generalized least squares)
- 2014-01-08 16:58:54下载
- 积分:1
-
sys-tradingstrategy
algorithm trading code
- 2013-12-31 16:54:05下载
- 积分:1
-
CXD3152AR
说明: CXD3152AR document pdf
- 2010-10-15 05:58:05下载
- 积分:1
-
在C程序中显示汉字
在许多C程序设计中,要用到汉字进行提示或人机交互,而现行的Turbo C集成开发环境不是汉化的,如何编制能显示汉字的C程序呢?本实例提供一种在非汉化环境下正常显示汉字的方法。(in many C program design, the use of Chinese characters for hints or human-computer interaction, and the existing Turbo C integrated development environment is not finished, will show how to prepare Chinese C procedures? The examples provide an environment in the effort to show Chinese characters under the normal method.)
- 2005-03-31 22:48:07下载
- 积分:1
-
Quantum-genetic-algorithms--optimal
matlab量子遗传算法求最优,其适应度函数可以根据自身实际情况编写求适应度值最高的最优解。(Quantum genetic algorithms for optimal matlab)
- 2014-12-23 12:55:50下载
- 积分:1
-
control
某型三轴转台的控制程序,数据由试验得出。(A certain type of three-axis turntable control program, the data obtained by the test.)
- 2020-12-28 23:19:02下载
- 积分:1
-
mathematica
mathematica全书(中文特别版)(the mathematica book is (Chinese Special edition))
- 2013-03-22 18:43:00下载
- 积分:1