creating a matrix by expanding a row

1 vue (au cours des 30 derniers jours)
alpedhuez
alpedhuez le 21 Avr 2018
Suppose I have a 1*N row vector A. I want to vertically concatenate A for M times to create M*N matrix. Please advise.

Réponse acceptée

Ameer Hamza
Ameer Hamza le 21 Avr 2018

You can use repmat() to repeat a matrix several times. In your case you can use

repmat(A, m, 1)

Plus de réponses (0)

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by