Borrar filtros
Borrar filtros

Going from 1 x n to n x n matrix

14 visualizaciones (últimos 30 días)
Gibliano
Gibliano el 25 de Jul. de 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

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Resizing and Reshaping Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by