-
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
-
mimo_waterfilling
MIMO_System.m MIMO系统建模
WaterFilling_alg.m 注水算法的源程序(MIMO_System.m MIMO system modeling algorithm WaterFilling_alg.m water source)
- 2008-03-14 17:01:58下载
- 积分:1
-
zstp_sig
说明: 噪声调频信号的产生:1、产生高斯噪声电压
2。用6极点椭圆滤波器形成噪声带宽
3。将滤波器输出送到一压控震荡器,输出即为调频噪声干扰信号(Noise FM signal generation: 1, resulting in Gaussian noise voltages 2. 6-pole elliptic filter noise bandwidth of the formation of 3. The filter output to a voltage controlled oscillator output signal noise shall be FM)
- 2010-04-23 10:04:08下载
- 积分:1
-
extractForeground
Fast video loading code do background subtraction subtracting all frames from first frame
and show the result video so fast
- 2013-10-30 13:37:26下载
- 积分:1
-
matlabGrabCutS
graphcuts算法,MATLAB编写,可以运行,能直观看到结果。(graph cuts algorithm,MATLAB prepared)
- 2015-04-18 19:58:14下载
- 积分:1
-
logisticsuanfa
多目标优化
相对传统多目标优化方法, PSO在求解多目标问题上具有很大优势。首先, PSO的高效搜索能力有利于得到多目标意义下的最优解 其次, PSO通过代表整个解集的种群按内在的并行方式同时搜索多个非劣解,因此容易搜索到多个Pareto 最优解 再则, PSO的通用性使其适合于处理所有类型的目标函数和约束 另外, PSO 很容易与传统方法相结合,进而提出解决特定问题的高效方法。就PSO 本身而言,为了更好地解决多目标优化问题,必须解决全局最优粒子和个体最优粒子的选择问题(Compared with the traditional multi-objective optimization of multi-objective optimization method, PSO in solving multi-objective problem has a great advantage. First, PSO is conducive to the efficient search capabilities are more objective sense of the optimal solution Secondly, PSO representative of the entire solution set through the population by way of the inherent parallel search multiple non-inferior solution, and this can easily search for the most number of Pareto optimal solution Furthermore, PSO' s versatility make it suitable for handling all types of objective function and constraints addition, PSO is easy to integrate with the traditional method, and then propose an efficient way to solve specific problems. The PSO itself, in order to better address the multi-objective optimization problems, the need to address the global best particle and the individual selection of the optimal particle)
- 2010-09-03 23:14:55下载
- 积分:1
-
JudgeNum
输入不大于5位的整数,判断位数,并且正序和逆序输出(Enter an integer not more than 5 to determine the median, and the positive sequence and the reverse output)
- 2009-11-23 14:46:12下载
- 积分:1
-
pcafacerecognition
基于主成分分析(PCA)的人脸识别系统
利用2D PCA算法求对训练集向量进行降维的降维矩阵,最近邻法测试对测试集识别的精度(pca face recognition)
- 2009-03-24 10:32:18下载
- 积分:1
-
gray
matlab实现的灰度处理方法,是一篇很好的文献(matlab realize the gray-scale approach is a good literature)
- 2008-04-20 13:46:45下载
- 积分:1
-
bistable-syetem
随机共振例程 bistable_system.m(bistable_system matlab code)
- 2020-12-04 11:49:24下载
- 积分:1