Effacer les filtres
Effacer les filtres

Going from 1 x n to n x n matrix

14 vues (au cours des 30 derniers jours)
Gibliano
Gibliano le 25 Juil 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

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Resizing and Reshaping Matrices dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by