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

    %% Tabular Block Format
% Create a table with variables |Age| and |Height|.

% Copyright 2015 The MathWorks, Inc.

A = table([39; 26],[70; 63],'VariableNames',{'Age' 'Height'})

%% 
% Repeat copies of the table into a 2-by-3 block format.
B = repmat(A,2,3)

%%
% |repmat| repeats the entries of the table and appends a number to the new variable names.