📄 mapsto.m
字号:
function out = mapsto(in,x,y)%MAPSTO Substitute matrix (array) elements% Y = MAPSTO(X,A,B) substitues all A elemetns in matrix (array) X to B% as one may expect Y = {X:A |-> B}.% Copyright 2001-2003 Kamil Anis, anisk@feld.cvut.cz% Dept. of Radioelectronics, % Faculty of Electrical Engineering% Czech Technical University in Prague% $Revision: 0.1 $ $Date: 2003/1/16 17:33:28 $% --% <additional stuff goes here>mask = y * (in == x);out = in + mask;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -