📄 chgnum.m
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -