Filter löschen
Filter löschen

Going from 1 x n to n x n matrix

14 Ansichten (letzte 30 Tage)
Gibliano
Gibliano am 25 Jul. 2012
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

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Resizing and Reshaping Matrices finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by