nncpyi.m
来自「matlab 模式识别工具包 希望能对你们有用」· M 代码 · 共 31 行
M
31 行
function b = nncpyi(m,n)%NNCPYI Make interleaved copies of a matrix.% % *WARNING*: This function is undocumented as it may be altered% at any time in the future without warning.% NNCPYI(M,N)% M - Matrix of columns = [C1 C2 ...].% N - Number of copies to make.% Returns:% Matrix = [C1 C1 ... C1 C2 C2 ... C2 ... ]% where each column in M appears N times.%% EXAMPLE: M = [1 2; 3 4; 5 6];% n = 3;% X = nncpyi(M,n)%% SEE ALSO: nncpy, nncpyd% Mark Beale, 12-15-93% Copyright (c) 1992-94 by the MathWorks, Inc.% $Revision: 1.1 $ $Date: 1994/01/11 16:26:13 $[mr,mc] = size(m);b = zeros(mr*n,mc);ind = 1:mr;for i=[0:(n-1)]*mr b(ind+i,:) = m;endb = reshape(b,mr,n*mc);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?