how to covert a mx1 matrix into mxm matrix ?

1 view (last 30 days)
MD.FAISAL
MD.FAISAL on 1 Mar 2013
how to covert a mx1 matrix into mxm matrix ?

Answers (1)

Wayne King
Wayne King on 1 Mar 2013
Edited: Wayne King on 1 Mar 2013
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.

Categories

Find more on Special Functions in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!