[ MATLAB ] 向量构建矩阵

一个简单的例子:

>> tic, A = ones(100,100)*5; toc
Elapsed time is 0.342084 seconds.

>> tic,A = 5; A = A(ones(100,100)); toc
Elapsed time is 0.000437 seconds.

 

你可能感兴趣的:(MATLAB,matlab)