正在加载图片...
1-1 Creating Matrice This example constructs a new matrix C by concatenating matrices a and b in a vertical direction: A= ones(2, 5)*6: %2-by-5 matrix of 6s B= rand(3, 5); %3-by-5 matrix of random values C=[A; BI Vertically concatenate A and B C 6.00006.00006.0000600006.0000 6.00006.00006.00006.00006.0000 0.61540.73820.93550.89360.8132 0.79190.1763091690.05790.0099 0.92180.40570.41030.35290.13891-1 Creating Matrice This example constructs a new matrix C by concatenating matrices A and B in a vertical direction: A = ones(2, 5) * 6; % 2-by-5 matrix of 6's B = rand(3, 5); % 3-by-5 matrix of random values C = [A; B] % Vertically concatenate A and B C = 6.0000 6.0000 6.0000 6.0000 6.0000 6.0000 6.0000 6.0000 6.0000 6.0000 0.6154 0.7382 0.9355 0.8936 0.8132 0.7919 0.1763 0.9169 0.0579 0.0099 0.9218 0.4057 0.4103 0.3529 0.1389
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有