chgnum.m

来自「this a SVM toolbox,it is very useful for」· M 代码 · 共 26 行

M
26
字号
function [I]=chgnum(I,oldValue,newValue)% [I]=chgnum(I,oldValue,newValue)%% CHGNUM chages oldValue(s) from the vector I to%  corresponding newValue(s) and returns the result.%  In other words it performs %%  for j = 1:length(oldValue),%     I( find( I == oldValue(j) ) ) = newValue(j);%  end%  % Statistical Pattern Recognition Toolbox, Vojtech Franc, Vaclav Hlavac% (c) Czech Technical University Prague, http://cmp.felk.cvut.cz% Written Vojtech Franc (diploma thesis) 02.01.2000% Modifications%  9-jan-2001 createdfor j = 1:length(oldValue),    I( find( I == oldValue(j) ) ) = newValue(j);  endreturn;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?