-
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
-
jiefangcheng
利用MATLAB求微分解方程,程序简单实用,可以让大家轻松掌握(Find micro-decomposition equation using MATLAB, the program is simple and practical, so that everyone can easily grasp)
- 2011-09-11 01:25:00下载
- 积分:1
-
matlab-learning
matlab自学经典教程,对初学者入门帮助较大(matlab self-classic guide more helpful to the beginner)
- 2012-07-31 21:32:41下载
- 积分:1
-
DBE
聚类重要步骤,利用数据之间的相似度自适应确定类别数(decide adaptive number of classes using similarity)
- 2013-09-24 22:27:58下载
- 积分:1
-
dxbdzg
单相半波可控整流电路(阻感性负载)的matlab仿真(Matlab simulation of single-phase half-wave controlled rectifier circuit (resistive-inductive load))
- 2013-03-23 16:31:46下载
- 积分:1
-
V2_1
Addition and subtraction of signals matlab code
- 2014-12-31 15:06:39下载
- 积分:1
-
Matlab-GENE
详细描述了matlab中非数值的遗传算法(A detailed description of the genetic algorithm matlab numerical Africa)
- 2014-03-26 15:47:21下载
- 积分:1
-
donglixing
使用matlab计算汽车动力性,为分析整车性能打下基础,同时作为分析整车性能的工具(Calculation of vehicle dynamics)
- 2016-04-19 11:04:42下载
- 积分:1
-
hlflssil
说明: 历年数学建模解题程序代码:电力分派与管理,MATLAB程序2(Mathematical modeling problem-solving year code: electricity distribution management, MATLAB program 2)
- 2009-08-03 23:19:06下载
- 积分:1
-
Scilab
说明: Scilab基本算法语句与基础操作指南,帮助新手学习scilab应用(basics in Scilab)
- 2010-04-15 20:50:37下载
- 积分:1