www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/CreateHorizontalStackOfColumnVectorsExample.m

    %% Horizontal Stack of Column Vectors
% Horizontally stack a column vector four times.

% Copyright 2015 The MathWorks, Inc.

A = (1:3)';  
B = repmat(A,1,4)