mapsto.m
来自「Lattice coding and decoding」· M 代码 · 共 16 行
M
16 行
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 + =
减小字号Ctrl + -
显示快捷键?