how to covert a mx1 matrix into mxm matrix ?
1 次查看(过去 30 天)
显示 更早的评论
回答(1 个)
Wayne King
2013-3-1
编辑:Wayne King
2013-3-1
X = randn(10,1);
X = repmat(X,1,10);
The above repeats the column vector, X, as the remaining m-1 columns of the matrix.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Special Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!