Clear Filters
Clear Filters

Going from 1 x n to n x n matrix

14 views (last 30 days)
How doe I convert a matrix with 100 elements in a 1x100 matrix to a 100x100 matrix. Each row in the 1xn matrix will have the same values in rows 2, 3, 4, 5 etc to 100

Accepted Answer

Oleg Komarov
Oleg Komarov on 25 Jul 2012
repmat(A,100,1)
where A is your vector.

More Answers (0)

Categories

Find more on Resizing and Reshaping Matrices in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!