-
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
-
BPSO
BPSO 二进制粒子群优化算法matlab源代码实现
(Binary particle swarm optimization algorithm)
- 2021-04-04 16:19:05下载
- 积分:1
-
M_fenxingtu
基于Matlab平台的绘制M分形图的一个小代码,希望大家通过学习能优化代码(platform based on the mapping of Matlab M fractal images of a small code, we hope that through learning can be optimized code)
- 2007-07-04 16:11:57下载
- 积分:1
-
jiyuzhengshuxiaobobianhuandetuxiangwusunyasuofangf
基于整数小波变换的图像无损压缩方法(Based on Integer Wavelet Transform image lossless compression method)
- 2008-04-30 22:23:59下载
- 积分:1
-
testrotationFault1
地震断层旋转功能,把地震断层按研究需要旋转到一定角度。(Earthquake fault rotation function, according to the research needs of earthquake faults rotated to a certain angle.)
- 2013-07-16 10:43:48下载
- 积分:1
-
codeforlvq
image compression using lvq
- 2010-12-07 18:36:08下载
- 积分:1
-
MATLAB-Programming
MATLAB 编程(第二版)
《MATLAB Programming for Engineers》的中文版,最好的编程教材。
(MATLAB Programming for Engineers
(Second Edition) )
- 2013-07-16 10:43:48下载
- 积分:1
-
zengqiangtuxiangsheji
一种小波增强图像的方法,过程详细,结果对比分明,有较好的参考价值。(Enhance the image of a wavelet method, the process in detail, comparing the results clearly, there is a good reference value.)
- 2011-07-24 00:47:27下载
- 积分:1
-
Efficient-MR-Image
Effi cient MR Image
Reconstruction for Compressed MR Imaging
- 2017-03-14 17:04:14下载
- 积分:1
-
matlab-uniquac
本程序使用matlab语言,编制了一个基于通用似化学活度系数模型来计算四组分反应体系中各组分的汽液平衡状态的程序.(This procedure using the matlab language, developed a chemical based on a common activity coefficient model seems to calculate the four-component reaction system of the components of the vapor-liquid equilibrium of the program.)
- 2020-08-30 20:48:10下载
- 积分:1